prowritingaid.javascript icon indicating copy to clipboard operation
prowritingaid.javascript copied to clipboard

I got issue CORS when hit api on local

Open ningo-agilityio opened this issue 4 years ago • 2 comments

Url: https://api.prowritingaid.com/api/async/html This is my headers:

api.apiClient.defaultHeaders = { 
  licenseCode: 'xxx',
  "Access-Control-Allow-Origin": "http://localhost:3000/",
  "Access-Control-Allow-Methods": "POST, GET, OPTIONS",
  "Access-Control-Allow-Headers": "Access-Control-Allow-*, Content-Type"
}

My error:

Access to XMLHttpRequest at 'https://api.prowritingaid.com/api/async/html' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

ningo-agilityio avatar Mar 05 '21 02:03 ningo-agilityio

Same issue. Got cors error even on site, not local.

SomeRom71 avatar Nov 18 '21 06:11 SomeRom71

is this project still live? looks like the code was not touched in 5 years! I am getting cors issues on localhost as well

demiro avatar Nov 06 '23 08:11 demiro