Sitename = dynamic-starburst-63f97a
Hi!
I’m trying to set up correct routing on my vue app and have already setup the rewrite like following
[[redirects]]
from = “/*”
to = “/index.html”
status = 200
Now, when i access my site the routing just does not work and i get errors in the console telling me dynamic imports are failing. I thought this might be caused by the redirect so i added an extra redirect to make sure js files get hosted normally
[[redirects]]
from = “/js/*”
to = “/:splat”
status = 200
and since the error also state something about cors : …has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
i also added following header information
[[headers]]
for = “/"
[headers.values]
Access-Control-Allow-Origin = "”
But to no avail, the app just does not want to work. Am i looking at this problem in the wrong way?
Thanks!
Jonas