Skip to content

Commit 0e48bf2

Browse files
authored
Make dev csp match prod (#2274)
1 parent f1f6ba7 commit 0e48bf2

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

config/_default/server.toml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Permissions-Policy = """
2424
# "form-action" is NOT set, so it allows everything (it doesn't default to default-src). If restricted, It must allow at least www.paypal.com and its redirects
2525
Content-Security-Policy = """
2626
default-src 'none';
27-
style-src 'self' 'unsafe-inline'
28-
https://donorbox.org
27+
font-src 'self'
2928
https://doublethedonation.com
3029
https://rsms.me
3130
http://rsms.me
3231
;
33-
font-src 'self'
32+
style-src 'self' 'unsafe-inline'
33+
https://donorbox.org
3434
https://doublethedonation.com
3535
https://rsms.me
3636
http://rsms.me
@@ -45,18 +45,19 @@ Content-Security-Policy = """
4545
https://donorbox.org
4646
https://doublethedonation.com
4747
https://js.stripe.com
48-
https://js.stripe.com/v3/
4948
https://jspm.dev
49+
https://js.stripe.com/v3/
5050
https://sdks.shopifycdn.com
5151
https://www.paypal.com
52+
https://www.paypalobjects.com
5253
https://widget.thegivingblock.com
53-
https://js.dev.shift4.com
54+
https://*.shift4.com
5455
;
5556
img-src 'self' data: blob:
5657
https://www.google-analytics.com
5758
https://donorbox.org
5859
https://doublethedonation.com
59-
https://www.paypal.com
60+
https://*.paypal.com
6061
https://www.paypalobjects.com
6162
https://ak2s.abmr.net
6263
https://ak1s.abmr.net
@@ -73,15 +74,17 @@ Content-Security-Policy = """
7374
https://js.stripe.com/v2/
7475
https://www.paypal.com
7576
https://outreach.abetterinternet.org
77+
https://app.netlify.com
7678
https://widget.thegivingblock.com/
7779
;
7880
connect-src 'self'
7981
https://d4twhgtvn0ff5.cloudfront.net/
8082
https://donorbox.org
8183
https://doublethedonation.com
8284
https://letsencrypt-merch.myshopify.com
83-
https://www.google-analytics.com
85+
https://monorail-edge.shopifysvc.com
8486
https://www.paypal.com
87+
https://www.google-analytics.com
8588
;
8689
frame-ancestors 'none';
8790
"""

0 commit comments

Comments
 (0)