Skip to content

Commit 93ad0d8

Browse files
committed
Give up and unsafe eval
1 parent be92c84 commit 93ad0d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/http.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ impl Middleware for SecurityHeadersMiddleware {
106106
vec![
107107
"default-src 'self'; \
108108
connect-src 'self' https://docs.rs; \
109-
script-src 'self' https://www.google-analytics.com https://www.google.com; \
109+
script-src 'self' 'unsafe-eval' \
110+
https://www.google-analytics.com https://www.google.com; \
110111
style-src 'self' https://www.google.com https://ajax.googleapis.com; \
111112
img-src *; \
112113
object-src 'none'"

0 commit comments

Comments
 (0)