prowritingaid.javascript
prowritingaid.javascript copied to clipboard
I got issue CORS when hit api on local
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.
Same issue. Got cors error even on site, not local.
is this project still live? looks like the code was not touched in 5 years! I am getting cors issues on localhost as well