Join GitHub today
Content-Type: application/csp-report [improvement Request] #1024
Thanks for the excellent work and the new improvements!!
I am capturing CSP reports via eve. However, the specification is not evenly adopted among the User-Agents.
(Not allowed in eve/methods/common.py )
In other cases, the user agents post with: Content-Type: application/json, and eve responds with 201.
MDN specification indicates that the format for csp reports is always json.
I would like to request the improvement, which allows the content-type "application/csp-report" to be treated such as "application/json", in eve/methods/common.py.
I think it might be beneficial to get supported types to the config file, so it can easily support also vendor specific json types (https://en.wikipedia.org/wiki/Media_type#Vendor_tree).