metlo-labs / csp-report-listener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Really helpful application. Please support application/reports+json

cocoonkid opened this issue · comments

Thanks for this piece of software.

How can I make it accept

application/reports+json ?

Currently the reply is always 415 Expected request with Content-Type: application/json

When using curl it works immediately.

Hi @akshay288,

I'm running into the same issue while trying to implement the listener.
Chrome does a POST request with content-type: application/csp-report
The response has status code 415 Unsupported Media Type.

I looked through the code, but my Rust knowledge is unfortunately non existent.
Do you have any intentions to update? If not I will start looking for another solution.

Thanks!

Similar issue with Firefox. Firefox uses POST with Content-Type: application/csp-report and gets response HTTP/1.1 415 Unsupported Media Type.

Is it correct to POST the reports to the root path / or should we be POSTing the reports to some other endpoint?

Was anyone able to solve this?