在我的本地主機頁面中,我回傳了這個標題:
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"
我嘗試過使用與他們相同的小寫標題名稱,但沒有成功。有什么想法我在這里做錯了嗎?
uj5u.com熱心網友回復:
這最終在我們的臨時站點上運行,所以我很確定它在 localhost 上不起作用。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/448189.html
