I've built a tool that allows users to crawl there own website sitemap. Now I've pushed it to staging I obviously get the Cors error.
Is there a way to fix that in the front end without writing a cloud function?
Error: "Access to XMLHttpRequest at 'https://www.userswebsite.com/page-sitemap.xml' from origin 'https://app.mywebsite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
Firebase.json file
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}