jsonplaceholder icon indicating copy to clipboard operation
jsonplaceholder copied to clipboard

Blocked by CORS Policy

Open alibenmessaoud opened this issue 3 years ago • 10 comments

I have an error saying:

Access to fetch at 'https://jsonplaceholder.typicode.com/users' from origin 'http://127.0.0.1:8082' 
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present 
on the requested resource. If an opaque response serves your needs, set the request's mode 
to 'no-cors' to fetch the resource with CORS disabled.

Also, https://jsonplaceholder.typicode.com/users?username=bret is returning 503!

Can you please check the server?

alibenmessaoud avatar Apr 22 '21 02:04 alibenmessaoud

I'm having the same problem.

luciaberon avatar Apr 22 '21 05:04 luciaberon

I also have

shadyassan avatar Apr 22 '21 07:04 shadyassan

same, I tried local, codepen and then jsfiddle it gets blocked by CORS. And if I put mode:'no-cors' in the fetch request's options. Then it gives empty response.

back2Lobby avatar Apr 22 '21 10:04 back2Lobby

same

DevDanielOropeza avatar Apr 22 '21 13:04 DevDanielOropeza

I got same error

Med1El avatar Apr 22 '21 18:04 Med1El

I'm having the same problem.

dayoherrera avatar Apr 23 '21 00:04 dayoherrera

Same error for me

doriansmiley avatar Apr 23 '21 03:04 doriansmiley

Same issue, are they about to fix it? It's one or 2 lines of code.

vadimt2 avatar Apr 23 '21 07:04 vadimt2

Same error here. Any solution yet? Edit: I had the CORS issue for PATCH method only. For all other methods it worked correctly.

vtomic85 avatar Nov 18 '21 15:11 vtomic85

I ran into this for all requests. If you need something similar https://reqres.in/api/users is comparable and is working.

scottsword avatar Apr 07 '22 20:04 scottsword