adopted-ember-addons / adopted-ember-addons/ember-cli-content-security-policy

Use report-to instead of the deprecated report-uri

未關閉
#166 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement good first issue
主要語言
JavaScript
星號
157
分支
44
PR 合併指標
30 天內沒有已合併 PR

描述

The new Reporting API is not supported by all browsers yet, so **this isn't something we need to move on for at least another year or so**. As of November 2020 it's not yet supported by Firefox or Safari.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to

1. At some point we'll want to add support for `report-to` in addition to `report-uri`. With both are present and the browser support both, `report-to` takes precedence.
2. Separately, when all browsers supported by ember has support for `report-to` we'll want to drop the `report-uri` value.

Opened since @jelhan asked me to: https://github.com/rwjblue/ember-cli-content-security-policy/issues/148

**Background**

- https://developers.google.com/web/updates/2018/09/reportingapi
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri
- https://www.w3.org/TR/CSP3/

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。