Skip to content

Commit 9141e31

Browse files
committed
Allow docs.rs to make ajax requests
1 parent 68b9175 commit 9141e31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/http.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ impl Middleware for SecurityHeadersMiddleware {
105105
"Content-Security-Policy".into(),
106106
vec![
107107
"default-src 'self'; \
108+
connect-src 'self' https://docs.rs; \
108109
script-src 'self' https://www.google-analytics.com https://www.google.com; \
109110
style-src 'self' https://www.google.com; \
110111
img-src *; \

0 commit comments

Comments
 (0)