Skip to content

Commit 55ffb13

Browse files
remove wildcard in CSP
1 parent 9ee27e4 commit 55ffb13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async fn main() {
4343
.connect_timeout(Duration::from_secs(10))
4444
.default_headers(default_headers)
4545
.user_agent(concat!(
46-
"minecraftserviceschecker/",
46+
"mcping.me/",
4747
env!("CARGO_PKG_VERSION"),
4848
" (https://github.com/randomairborne/mcping)"
4949
))
@@ -87,7 +87,7 @@ static CACHE_CONTROL_AGE: HeaderValue = HeaderValue::from_static("s-maxage=30");
8787
static CSP_VALUE: HeaderValue = HeaderValue::from_static(
8888
"default-src 'self'; \
8989
img-src 'self' data:; \
90-
connect-src 'self' https://*.giveip.io; \
90+
connect-src 'self' https://v4.giveip.io; \
9191
script-src 'self' https://static.cloudflareinsights.com; \
9292
style-src 'self';\
9393
object-src 'none'; \

0 commit comments

Comments
 (0)