0

In my localhost page, I am returning this header:

Reporting-Endpoints: main-endpoint="https://[brand].report-uri.com/a/d/g", csp-endpoint="https://[brand].report-uri.com/r/d/csp/enforce", cspro-endpoint="https://[brand].report-uri.com/r/d/csp/reportOnly"

Where [brand] is my company's name in as a single lowercase word.

When I open Chrome's Reporting API view in the Application tab, I can see that no endpoints were parsed. But when I open https://reporting-api-demo.glitch.me/page, I can see two such endpoints parsed. They set:

reporting-endpoints: main-endpoint="https://reports-endpoint.glitch.me/main", default="https://reports-endpoint.glitch.me/default"

I've tried using the same lowercase header name they did, but it didn't work. Any ideas what I'm doing wrong here?

2 Answers 2

2

This ended up working on our staging site, so I'm pretty sure it just doesn't work on localhost.

Sign up to request clarification or add additional context in comments.

Comments

1

It doesn't work on HTTP. The reporting API Endpoints will be parsed on HTTPS.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.