My project is on vue framework. When opening a url from the home page, there is no problem. But when opening the url from outside of homepage like inside from an email, there is 404 error, not found.
Guess it is a cors problem , so set a vercel.json as described in the following link: https://vercel.com/guides/how-to-enable-cors#enabling-cors-using%C2%A0vercel.json
{ "headers": [ { "source": "/api/(.*)", "headers": [ { "key": "Access-Control-Allow-Credentials", "value": "true" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" }, { "key": "Access-Control-Allow-Headers", "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" } ] } ]}But it did not work at all.