Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

CORS-Preflight request fails on mTLS-secured connection

  • 1 svar
  • 0 har detta problem
  • 18 visningar
  • Senaste svar av a.oellerer

fler alternativ

Hey, I am currently working on an application where I want to upload files to a server using mtls via a webapp. The upload goes to another url and server than the one where the webapp is served from. If I test the file uploading without mTLS, it succeeds, and with mTLS enabled it also works in chromium, but in Firefox I get the following error: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <url> (Reason: CORS request did not succeed). Status code: (null)." on the `OPTIONS` request before the `PUT` is done. The client and the server both have a certificate from a custom CA, which I imported into firefox, along with the private key. Does someone know what the issue here might be? I am suspecting that there is some problem with firefox loading the user certificate on the preflight request?

Hey, I am currently working on an application where I want to upload files to a server using mtls via a webapp. The upload goes to another url and server than the one where the webapp is served from. If I test the file uploading without mTLS, it succeeds, and with mTLS enabled it also works in chromium, but in Firefox I get the following error: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <url> (Reason: CORS request did not succeed). Status code: (null)." on the `OPTIONS` request before the `PUT` is done. The client and the server both have a certificate from a custom CA, which I imported into firefox, along with the private key. Does someone know what the issue here might be? I am suspecting that there is some problem with firefox loading the user certificate on the preflight request?

Alla svar (1)

fler alternativ

Also posted this to the discourse after deeming it the more appropriate place

Ställ en fråga

Du måste logga in på ditt konto för att svara på inlägg. Vänligen starta en ny fråga om du inte har ett konto ännu.