报告端点未解析

Reporting Endpoints not parsing

在我的本地主机页面中,我返回这个 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"

其中 [brand] 是我公司名称的单个小写字母。

当我在“应用程序”选项卡中打开 Chrome 的报告 API 视图时,我可以看到没有解析任何端点。但是当我打开 https://reporting-api-demo.glitch.me/page 时,我可以看到解析了两个这样的端点。他们设置:

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

我试过使用与他们相同的小写 header 名称,但没有用。知道我在这里做错了什么吗?

这最终在我们的暂存站点上运行,所以我很确定它在本地主机上不起作用。