Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not receiving reports #4

Open
lordraiden opened this issue Jan 18, 2025 · 0 comments
Open

Not receiving reports #4

lordraiden opened this issue Jan 18, 2025 · 0 comments

Comments

@lordraiden
Copy link

lordraiden commented Jan 18, 2025

I have this in my nginx

# Add the Report-To header, which specifies the reporting endpoint
add_header Report-To '{"group":"default","max_age":10886400,"endpoints":[{"url":"http://metlocsp:8080"}],"include_subdomains":true}' always;
# Content-Security-Policy-Report-Only header to enable CSP reporting
add_header Content-Security-Policy-Report-Only "default-src 'self'; font-src 'self'; img-src 'self'; script-src 'self'; style-src 'self'; report-uri http://metlocsp:8080; report-to default;" always;

And I can curl http://metlocsp:8080 from nginx so no conectivity issue.
Still I don't get any report, any idea why?

Tried this as well and nothing

add_header Content-Security-Policy-Report-Only: "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self'; connect-src 'self'; object-src 'self'; frame-src 'self'; frame-ancestors 'self'; upgrade-insecure-requests; report-uri http://metlocsp:8080; report-to http://metlocsp:8080" always;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant