You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am setting up a CSP for my site and attempting to log violations to Sentry, but I have noticed that requests from my browser (Firefox) are returning status 400 and are not being logged to Sentry.
Important Details
How are you running Sentry?
Description
I am setting up a CSP for my site and attempting to log violations to Sentry, but I have noticed that requests from my browser (Firefox) are returning status 400 and are not being logged to Sentry.
My CSP header looks like the following:
Firefox is trying to log violations by using 'fetch' to post JSON to the endpoint, but is receiving the following response:
It looks as if Firefox is not specifying the
Content-Type
header for the request, but is sending valid JSON.Possible Solution
Perhaps Sentry could make a reasonable guess as to the request's content type if the
Content-Type
header is not speficied?The text was updated successfully, but these errors were encountered: