-
Notifications
You must be signed in to change notification settings - Fork 126
/
firebase.json
35 lines (35 loc) · 1.19 KB
/
firebase.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "dist/firebase-cms",
"cleanUrls": true,
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*.@(jpg|jpeg|gif|png)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=7200"
}
]
},
{
"source": "**",
"headers": [
{
"key": "Content-Security-Policy",
"value": "default-src 'self'; connect-src 'self' ws: wss: http://localhost:4200 https://*.googleapis.com; script-src 'unsafe-inline' 'unsafe-eval' 'self' https://*.google.com https://*.firebaseio.com https://cdn.ckeditor.com https://js.stripe.com/v2/; img-src 'self' data: https://*.googleusercontent.com https://firebasestorage.googleapis.com https://cdn.ckeditor.com https://*.stripe.com; font-src 'self' https://fonts.gstatic.com; style-src 'unsafe-inline' 'self' https://fonts.googleapis.com https://cdn.ckeditor.com; frame-src 'self' https://js.stripe.com https://*.firebaseio.com https://*.firebaseapp.com;"
}
]
}
]
}
}