Go REST
A

CORS Errors for the v2 endpoints

Andrea Briganti over 3 years ago 4225 views 1 replies

Hi!

I can get the posts/comments/users without the authentication token, but if I try to use it I get a CORS error:

Access to XMLHttpRequest at 'https://gorest.co.in/public/v2/comments' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Access to XMLHttpRequest at 'https://gorest.co.in/public/v2/users' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Access to XMLHttpRequest at 'https://gorest.co.in/public/v2/posts' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

1 reply
Z
zeevy over 3 years ago

Thanks for reporting.

Can you please check now and let me know

Your reply

Markdown supported