diff --git a/firebase.json b/firebase.json index 13d9c42..3f4516c 100644 --- a/firebase.json +++ b/firebase.json @@ -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" + } + ] + } ] }, { @@ -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" + } + ] + } ] } ] -} \ No newline at end of file +}