Skip to content

Access to fetch at 'http://jsonplaceholder.typicode.com/posts' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request. #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tapan31 opened this issue Nov 16, 2022 · 1 comment

Comments

@tapan31
Copy link

tapan31 commented Nov 16, 2022

I am trying to make a post request to the api in LESSON 3 to create a new post and it to the posts but its giving me this error

@MalekD5
Copy link

MalekD5 commented Nov 21, 2022

if you are using HTTPS everywhere extension, then you need to disable it and restart your web browser.

Edit: it seems that I misread the full error message. in short, you are missing the trailing slash (/) at the end of the api url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants