You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
Those headers shouldn't be inside of prepareHeaders. You should only need to include credentials for authenticated endpoints from a client perspective.
Double check your server configuration and make sure you can hit your api with a tool like insomnia.rest or postman.
Those headers shouldn't be inside of prepareHeaders. You should only need to include credentials for authenticated endpoints from a client perspective.
Double check your server configuration and make sure you can hit your api with a tool like insomnia.rest or postman.
RTK query problem
Inside the api I have the cors imported from the state with app.use(cors ()), but still giving this same error ..
I also made the configuration inside the RTK header
Access to fetch at 'http://localhost:3333/post/view/5c42f13a-2456-4b1a-9209-d87778303c22' from origin 'http://localhost:3000' 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.
fetchBaseQuery.ts:30 GET http://localhost:3333/post/view/5c42f13a-2456-4b1a-9209-d87778303c22 net::ERR_FAILED
The text was updated successfully, but these errors were encountered: