CORS post review request #4
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ticusb/movie-reviewer#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Having an issue in Revieews.js in the addReview() method. There is an issue with the api.post() request.
Heree is the error:
Access to XMLHttpRequest at 'http://localhost:8080/api/v1/reviews' 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.
It’s a CORS error and I tried adding the proper headers to the axoisconfig.js file, but still receive the same error.