[SOLVED] CORS with origin of "localhost" doesn't work
Code used:
Issue: the
Allow Origin
header isn't sent but the access-control-allow-credentials
is set2 Replies
what's the request
Origin
?
if nothing else, i'd assume you need to include the protocolOrigin is http://localhost:3000
Setting the
origin
in this code to http://localhost:3000
actually worked
For future people that stumble across this post: set the origin
paramter for cors
on the backend to the exact base URL for the frontend. So literally just http://localhost:whatever port the frontend is on
My frontend is using port 3000
So now I'm using
Thanks for your help, @ambergristle