From time to time, I have to debug cross-resource sharing issues during web development.
For my testing, Chrome and Firefox provide almost no information when they cancel the request due to a CORS violation. Typically, debugging involves checking all headers for specifications, reading the CORS standard, etc. This is a really cumbersome process.
Is there no way to tell the browser that it should be more detailed about why it canceled a particular request?
For example, I have more detailed debug messages like Request canceled due to missing X-Requested-With field in received Access-Control-Allow-Headers field or Request canceled because supplied Origin: and received Access-Control-Allow-Origin: fields mismatch .
source share