CORS post review request #4

Closed
opened 2023-02-22 18:31:53 +00:00 by ticusb · 0 comments
ticusb commented 2023-02-22 18:31:53 +00:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ticusb/movie-reviewer#4
No description provided.