Skip to content

Commit

Permalink
Add required headers for WASM to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed May 18, 2024
1 parent 8b16d40 commit fe16bb6
Showing 1 changed file with 61 additions and 1 deletion.
62 changes: 61 additions & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*",
"headers": [
{
"key": "Cross-Origin-Embedder-Policy",
"value": "credentialless"
},
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin"
}
]
}
]
},
{
Expand All @@ -28,7 +43,52 @@
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*",
"headers": [
{
"key": "Cross-Origin-Embedder-Policy",
"value": "credentialless"
},
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin"
}
]
}
]
},
{
"site": "health-data-server-legacy",
"public": "build/web",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*",
"headers": [
{
"key": "Cross-Origin-Embedder-Policy",
"value": "credentialless"
},
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin"
}
]
}
]
}
]
}
}

0 comments on commit fe16bb6

Please sign in to comment.