Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
warnyul committed Dec 8, 2024
1 parent 54a6d19 commit 179634f
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions generate-firebase-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,17 @@ const generateFirebaseJson = (
.replace(/\.html/, '')
.replace(/index/, '/')
.replace(/404/, '**/*');
cspHeadersForSourceGlob = cspHeadersForSourceGlob.concat(
[
{
source: sourceGlob,
headers: [
{
key: 'Content-Security-Policy',
value: builtPolicy,
}
],
}
]
);
cspHeadersForSourceGlob = [
{
source: sourceGlob,
headers: [
{
key: 'Content-Security-Policy',
value: builtPolicy,
}
],
}
].concat(cspHeadersForSourceGlob);

transformerFirebase(cspHeadersForSourceGlob);

Expand Down

0 comments on commit 179634f

Please sign in to comment.