metlo-labs / csp-report-listener

MIT License
37 stars 10 forks source link

Really helpful application. Please support application/reports+json #1

Open cocoonkid opened 1 year ago

cocoonkid commented 1 year ago

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.

StanvanHoorn commented 9 months ago

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!

McLaynV commented 8 months ago

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?

realArcherL commented 8 months ago

Was anyone able to solve this?