Skip to content

Commit 041ff61

Browse files
authored
Add sa (#1057)
* update CSP for SA experiment Signed-off-by: Andy Piper <andypiper@users.noreply.github.com>
1 parent da57d3e commit 041ff61

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

next.config.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,26 @@ const nextConfig: NextConfig = {
5555
"default-src": ["self"],
5656
"child-src": ["self"],
5757
"object-src": ["none"],
58-
"img-src": ["self", "proxy.joinmastodon.org", "blob:", "data:"],
58+
"img-src": [
59+
"self",
60+
"proxy.joinmastodon.org",
61+
"blob:",
62+
"data:",
63+
"https://queue.simpleanalyticscdn.com",
64+
"https://simpleanalyticsbadges.com",
65+
],
5966
"style-src": ["self", "unsafe-inline"],
6067
"script-src": [
6168
"self",
6269
notIfProduction("unsafe-inline"),
6370
notIfProduction("unsafe-eval"),
71+
"https://scripts.simpleanalyticscdn.com",
72+
],
73+
"connect-src": [
74+
"self",
75+
"api.joinmastodon.org",
76+
"https://queue.simpleanalyticscdn.com",
6477
],
65-
"connect-src": ["self", "api.joinmastodon.org"],
6678
"block-all-mixed-content": [],
6779
}),
6880
},
@@ -82,6 +94,8 @@ const nextConfig: NextConfig = {
8294
"https://*.stripe.com",
8395
"blob:",
8496
"data:",
97+
"https://queue.simpleanalyticscdn.com",
98+
"https://simpleanalyticsbadges.com",
8599
],
86100
"style-src": ["self", "unsafe-inline"],
87101
"script-src": [
@@ -92,6 +106,7 @@ const nextConfig: NextConfig = {
92106
"https://js.stripe.com",
93107
"https://*.js.stripe.com",
94108
"https://maps.googleapis.com",
109+
"https://scripts.simpleanalyticscdn.com",
95110
],
96111
"block-all-mixed-content": [],
97112
"frame-src": [
@@ -104,6 +119,7 @@ const nextConfig: NextConfig = {
104119
"self",
105120
"https://api.stripe.com",
106121
"https://maps.googleapis.com",
122+
"https://queue.simpleanalyticscdn.com",
107123
],
108124
}),
109125
},

0 commit comments

Comments
 (0)