Closed
Bug 1190647
Opened 9 years ago
Closed 5 years ago
CSP report body is not captured by 'copy as cURL'
Categories
(DevTools :: Netmonitor, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1269468
People
(Reporter: shekyan, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2467.2 Safari/537.36 Steps to reproduce: Make content to generate CSP violation report Actual results: In network tab of Web Developer tools, right click on csp report request and click on 'copy as cURL' doesn't capture the message body of the report. Expected results: Include message body in 'copy as cURL'
Updated•9 years ago
|
Component: Untriaged → Developer Tools: Netmonitor
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 1•5 years ago
|
||
I just tested this with FF 63 on my Mac and got the following: curl 'https://localhost/csp.php' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:63.0) Gecko/20100101 Firefox/63.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Content-Type: application/csp-report' -H 'DNT: 1' -H 'Connection: keep-alive' --data '{"csp-report":{"blocked-uri":"eval","document-uri":"https://localhost/csp.php","original-policy":"default-src https:; report-uri https://localhost/csp.php","referrer":"","violated-directive":"default-src"}}' It seems to be working fine now. Probably fixed in https://bugzilla.mozilla.org/show_bug.cgi?id=1269468; marking this as a duplicate of that bug.
Comment 2•5 years ago
|
||
Err, no I'm not marking it as a duplicate because I don't have the permissions to do that - but it looks like a duplicate of that bug (Bug 1269468). So I recommend that this be closed as a duplicate.
Flags: needinfo?(shekyan)
Works as expected now.
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(shekyan)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•