Flask API CORS Test

Request:



    

Fetch Result:



    

XMLHttpRequest Result:



    

Instructions:

  1. Make sure your Flask server is running
  2. Update the API URL if needed (default: http://localhost:5000/api/AI/check-toxic)
  3. Enter some content to test
  4. Click "Test API"
  5. Check the results below and browser console for errors

Common CORS Issues: