Skip to content

Not receiving reports #4

Description

@lordraiden

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions