QUESTION: “Why is this CORS request failing only in Firefox?”
ANSWER: While unrelated to the OP’s specific case, it may help you to know that Firefox does not trust CA’s (certificate authorities) in the Windows Certificate Store by default, and this can result in failing CORS requests in Firefox (as was alluded to by Svish in the question comments).
To allow Firefox to trust CA’s in the Windows Certificate Store:
- In Firefox, type
about:configin the address bar - If prompted, accept any warnings
- Right-click to create a new boolean value, and enter
security.enterprise_roots.enabledas the Name
Set the value totrue - Then re-test the failing request
Answer source: https://support.umbrella.com/hc/en-us/articles/115000669728-Configuring-Firefox-to-use-the-Windows-Certificate-Store