Skip to content

Commit 1f63b63

Browse files
committed
remove: csp
1 parent dabea99 commit 1f63b63

1 file changed

Lines changed: 0 additions & 40 deletions

File tree

svelte.config.js

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -23,46 +23,6 @@ const config = {
2323
prerender: {
2424
handleHttpError: "warn",
2525
entries: ["*", "/[...404]"]
26-
},
27-
csp: {
28-
mode: "hash",
29-
directives: {
30-
"default-src": ["self"],
31-
"img-src": [
32-
"self",
33-
"data:",
34-
"https://img.shields.io",
35-
"https://ubuyaolan.github.io",
36-
"https://img.t.sinajs.cn",
37-
"https://www.gstatic.com",
38-
"https://cn.bing.com",
39-
"https://www.bing.com"
40-
],
41-
"script-src": [
42-
"self",
43-
"unsafe-inline",
44-
"https://recaptcha.net/recaptcha/",
45-
"https://www.gstatic.com/recaptcha/",
46-
"https://www.google.com/recaptcha/",
47-
"https://www.recaptcha.net/recaptcha/"
48-
],
49-
"frame-src": [
50-
"self",
51-
"https://www.google.com/recaptcha/",
52-
"https://recaptcha.net/recaptcha/",
53-
"https://www.recaptcha.net/recaptcha/"
54-
],
55-
"connect-src": [
56-
"self",
57-
"https://www.google.com/recaptcha/",
58-
"https://recaptcha.net/recaptcha/",
59-
"https://www.recaptcha.net/recaptcha/",
60-
"https://api.tasaed.top"
61-
],
62-
"style-src": ["self", "unsafe-inline"],
63-
"require-trusted-types-for": ["script"],
64-
"trusted-types": ["svelte-trusted-html", "app-html"]
65-
}
6626
}
6727
}
6828
};

0 commit comments

Comments
 (0)