We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc6ff64 commit 581022eCopy full SHA for 581022e
offline/offline.web.ts
@@ -49,6 +49,17 @@ namespace $ {
49
50
const fetch_data = () => fetch( request ).then( response => {
51
if (response.status !== 200) return response
52
+
53
+ const headers = new Headers( response.headers )
54
+ headers.set( "Cross-Origin-Embedder-Policy", "credentialless" )
55
+ headers.set( "Cross-Origin-Opener-Policy", "same-origin" )
56
57
+ response = new Response( response.body, {
58
+ status: response.status,
59
+ statusText: response.statusText,
60
+ headers,
61
+ });
62
63
event.waitUntil(
64
caches.open( '$mol_offline' ).then(
65
cache => cache.put( request , response )
0 commit comments