Flask API CORS Test
Request:
Fetch Result:
XMLHttpRequest Result:
Instructions:
- Make sure your Flask server is running
-
Update the API URL if needed (default:
http://localhost:5000/api/AI/check-toxic)
- Enter some content to test
- Click "Test API"
- Check the results below and browser console for errors
Common CORS Issues:
- Missing 'Access-Control-Allow-Origin' header
- Incorrect 'Access-Control-Allow-Methods'
- Missing 'Access-Control-Allow-Headers'
- OPTIONS preflight request failing