API Testing Tool
Important CORS Note: If you're running this file locally (via file:// or http://localhost),
you will encounter CORS issues. To properly test the API:
- Recommended: Upload this file to Cloudflare Pages with the name
index.html
- Install a CORS browser extension like "CORS Unblock" for Chrome or "CORS Everywhere" for Firefox
- Run this file through a local server with CORS headers:
npx http-server --cors
For Cloudflare Pages deployment: Make sure to name this file index.html when uploading to Cloudflare Pages.
Test Direct API Endpoint
This tests the external API directly: https://auto8i.serveo.net/webhook/entry-point
Results will appear here...
Test Proxy API Endpoint
This tests your Cloudflare Worker proxy: https://inspire.minermsiminer.workers.dev/api/proxy
Results will appear here...
cURL Commands
Copy and paste these commands into your terminal to test the APIs:
Direct API Test
curl -X POST \
https://auto8i.serveo.net/webhook/entry-point \
-H "Content-Type: application/json" \
-d '{"text": "I feel peaceful and content right now"}' \
-v
Proxy API Test
curl -X POST \
https://inspire.minermsiminer.workers.dev/api/proxy \
-H "Content-Type: application/json" \
-d '{"text": "I feel peaceful and content right now"}' \
-v
CORS Headers Test
This section checks if the endpoints have proper CORS headers configured.
Results will appear here...