From fe16bb6b7c1de6e75856a29ba62c025d99849865 Mon Sep 17 00:00:00 2001 From: Rexios Date: Sat, 18 May 2024 10:43:46 -0400 Subject: [PATCH] Add required headers for WASM to work --- firebase.json | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) 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 +}