Cors No 'Access-Control-Allow-Origin'
Hi, im working on a tcg project with oak and deno, but im getting this message: "Access to fetch at 'http://localhost:8000/users/6/cards' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
Here is how im handling the fetch
and here is what i have on my server.ts
Any advice would be appreciated
4 Replies
Is that
app.use
right at the start, before you register anything else with the app?yes it is
tried * aswell, didnt work
Without more details about the project I can’t really offer any other help
nvm i fixed it had something to do with the jwt token
:deno_thumbs_up: