-
Notifications
You must be signed in to change notification settings - Fork 685
/
upward.yml
48 lines (48 loc) · 1.65 KB
/
upward.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
veniaSecurityHeaders:
resolver: inline
inline:
content-security-policy:
resolver: template
engine: mustache
provide:
backend: env.MAGENTO_BACKEND_URL
pageTypeNonce: veniaPageTypeNonce.nonce
template:
resolver: conditional
when:
- matches: env.NODE_ENV
pattern: development
use:
inline: ""
- matches: env.SCRIPT_NAME
pattern: '.*\.php$'
use:
inline: "
script-src http: https: {{ backend }}{{#pageTypeNonce}} 'nonce-{{ pageTypeNonce }}'{{/pageTypeNonce}};
style-src 'self' blob: https: 'unsafe-inline' {{ backend }};
img-src data: http: https:;
object-src 'none';
base-uri 'none';
child-src 'self';
font-src 'self' fonts.gstatic.com;
frame-src assets.braintreegateway.com *.google.com *.youtube.com *.youtu.be *.vimeo.com
"
default:
inline: "
script-src http: https: {{ backend }};
style-src 'self' blob: https: 'unsafe-inline' {{ backend }};
img-src data: http: https:;
object-src 'none';
base-uri 'none';
child-src 'self';
font-src 'self' fonts.gstatic.com;
frame-src assets.braintreegateway.com *.google.com *.youtube.com *.youtu.be *.vimeo.com
"
strict-transport-security:
inline: max-age=31536000
x-content-type-options:
inline: nosniff
x-frame-options:
inline: SAMEORIGIN
x-xss-protection:
inline: '1; mode=block'