mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-02-10 15:05:01 +00:00
fix: indique au service worker d’utiliser CORS pour fetch piano-analytics
This commit is contained in:
parent
4aa505021f
commit
f2f137bf1d
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,10 @@ const networkFirstPiano = new Route(
|
|||
return url.hostname === 'tag.aticdn.net'
|
||||
},
|
||||
new NetworkFirst({
|
||||
fetchOptions: {
|
||||
credentials: 'include',
|
||||
mode: 'cors',
|
||||
},
|
||||
cacheName: 'piano-cache',
|
||||
plugins: [
|
||||
new ExpirationPlugin({
|
||||
|
|
Loading…
Add table
Reference in a new issue