5👍
✅
Since you’re deploying a SPA, you need to route all routes to your index.html
and let Vue handle them.
According to this article, you need to add a _redirects
file to your publish
directory with the following line to take advantage of browser history pushstate:
/* /index.html 200
For more info, see Netlify’s docs.
3👍
I solved the CORS issue. In the Okta Dashboard, I added the redirecting URL as an original URL under API > Trusted Origins
. I selected Add Origin
to specify the base URL of the website, then selected CORS. See : https://support.okta.com/help/s/article/CORS-error-when-accessing-Okta-APIs-from-front-end
Source:stackexchange.com