#How enable CORS on Vercel?
1 messages · Page 1 of 1 (latest)
How implement this on Remix?
CORS is used to enable cross browser requests, it shouldn’t affect your connection to the database
Right!
I think I have two problems then.
On "development" local machine all work fine.
How to change "Same Origin" policy?
That’s a header you add to your responses
You can use https://github.com/sergiodxa/remix-utils#cors
Nice.. I'll try it!
What the effect thist on root.server.tsx?
the HeadersFunction is only used for document requests
which shouldn't have CORS issues because you usually do a request to get data and not HTML
I've solve the cors problem. Now, about MongoDb server, on server logs, i can identify the vercel connection on realtime, but vercel can't get response. Instead receive time out
you should ask Vercel support about this