report-to
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Report-To HTTP ìëµ í´ë íëë ì¬ì©ì ìì´ì í¸(ë¸ë¼ì°ì )ê° ë í¬í¸ë¥¼ ì ì¥í기 ìí originì ìëí¬ì¸í¸ë¥¼ ì§ì í©ëë¤.
Content-Security-Policy: ...; report-to groupname
ì´ ì§ìì´ ìì²´ë¡ë í¨ê³¼ë ìì§ë§ ë¤ë¥¸ ì§ì문과 ì¡°í©íì¬ ì미를 ê°ì§ ì ììµëë¤.
| CSP version | 1 |
|---|---|
| Directive type | Reporting directive |
This directive is not supported in the <meta>
element.
|
|
Syntax
Content-Security-Policy: report-to <json-field-value>;
Examples
ë ìì¸í ì ë³´ì ìì ë Content-Security-Policy-Report-Only 를 íì¸íì¸ì.
Report-To: { "group": "csp-endpoint",
"max-age": 10886400,
"endpoints": [
{ "url": "https://example.com/csp-reports" }
] },
{ "group": "hpkp-endpoint",
"max-age": 10886400,
"endpoints": [
{ "url": "https://example.com/hpkp-reports" }
] }
Content-Security-Policy: ...; report-to csp-endpoint
Report-To: { "group": "endpoint-1",
"max-age": 10886400,
"endpoints": [
{ "url": "https://example.com/reports" },
{ "url": "https://backup.com/reports" }
] }
Content-Security-Policy: ...; report-to endpoint-1
ë¸ë¼ì°ì í¸íì±
ì´ íì´ì§ì í¸íì± í ì´ë¸ì 구조íë ë°ì´í°ìì ìì±ë©ëë¤. ë°ì´í°ì 기ì¬íê³ ì¶ë¤ë©´ https://github.com/mdn/browser-compat-data 를 íì¸íê³ pull request를 ë³´ë´ì£¼ì¸ì.