Skip to content

Instantly share code, notes, and snippets.

@levidurfee
Created May 7, 2019 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save levidurfee/851920113c5a092652806811126139fa to your computer and use it in GitHub Desktop.
Save levidurfee/851920113c5a092652806811126139fa to your computer and use it in GitHub Desktop.
Firebase Hosting - Content Security Policy
{
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"functions": {
"predeploy": [
"npm --prefix \"%RESOURCE_DIR%\" run lint"
],
"source": "functions"
},
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "/csp",
"function": "cspReport"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment