Skip to content

Commit

Permalink
Merge pull request #860 from hotwax/104-soc2-fixes
Browse files Browse the repository at this point in the history
Improved: Added X-Frame-Options, CSP, strict-transport-security and Permissions-Policy headers in firebase config in context of soc2 compliance (#104).
  • Loading branch information
ravilodhi authored Nov 25, 2024
2 parents b3c2eeb + f3c3fd1 commit 5276866
Showing 1 changed file with 57 additions and 4 deletions.
61 changes: 57 additions & 4 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,25 @@
"rewrites": [ {
"source": "**",
"destination": "/index.html"
} ]

} ],
"headers": [ {
"source": "**",
"headers": [ {
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Security-Policy",
"value": "default-src 'self';font-src 'self' data: *;script-src 'self' 'unsafe-inline' 'unsafe-eval' fonts.googleapis.com https://www.gstatic.com;img-src 'self' 'unsafe-inline' *.shopify.com javascript: ;style-src 'self' 'unsafe-inline' *;connect-src 'self' *"
},
{
"key": "strict-transport-security",
"value": "max-age=31536000; includeSubDomains"
},{
"key": "Permissions-Policy",
"value": "camera=self"
} ]
}]
},
{
"target": "dev",
Expand All @@ -25,7 +42,25 @@
"rewrites": [ {
"source": "**",
"destination": "/index.html"
} ]
} ],
"headers": [ {
"source": "**",
"headers": [ {
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Security-Policy",
"value": "default-src 'self';font-src 'self' data: *;script-src 'self' 'unsafe-inline' 'unsafe-eval' fonts.googleapis.com https://www.gstatic.com;img-src 'self' 'unsafe-inline' *.shopify.com javascript: ;style-src 'self' 'unsafe-inline' *;connect-src 'self' *"
},
{
"key": "strict-transport-security",
"value": "max-age=31536000; includeSubDomains"
},{
"key": "Permissions-Policy",
"value": "camera=self"
} ]
}]
},
{
"target": "uat",
Expand All @@ -38,7 +73,25 @@
"rewrites": [ {
"source": "**",
"destination": "/index.html"
} ]
} ],
"headers": [ {
"source": "**",
"headers": [ {
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Security-Policy",
"value": "default-src 'self';font-src 'self' data: *;script-src 'self' 'unsafe-inline' 'unsafe-eval' fonts.googleapis.com https://www.gstatic.com;img-src 'self' 'unsafe-inline' *.shopify.com javascript: ;style-src 'self' 'unsafe-inline' *;connect-src 'self' *"
},
{
"key": "strict-transport-security",
"value": "max-age=31536000; includeSubDomains"
},{
"key": "Permissions-Policy",
"value": "camera=self"
} ]
}]
}
]
}

0 comments on commit 5276866

Please sign in to comment.