CORS
Response to preflight request doesn't pass access control check: It does not have HTTP ok status – Web CORS_PREFLIGHT_FAIL
L'errore compare quando la richiesta preliminare HTTP OPTIONS (preflight) inviata dal browser fallisce con codice 404, 403 o 500 sul server.
Cosa significa questo errore?
L'errore compare quando la richiesta preliminare HTTP OPTIONS (preflight) inviata dal browser fallisce con codice 404, 403 o 500 sul server.
Messaggio originale
Response to preflight request doesn't pass access control check: It does not have HTTP ok statusContesto e parole chiave
Alias
- CORS Preflight Failed
Messaggi alternativi
- Richiesta preflight CORS non riuscita
Prodotti
- Web Platform / RFC Standards
Piattaforme
- Linux
- macOS
- Windows Server
Parole chiave
- CORS
- errore-cors-preflight-response-not-successful
- web.cors.preflight-response-not-successful
Cause possibili
Causa tecnica principale per Errore CORS: Preflight response does not have HTTP ok status (OPTIONS 404/500)
L'errore compare quando la richiesta preliminare HTTP OPTIONS (preflight) inviata dal browser fallisce con codice 404, 403 o 500 sul server.
molto comuneDiagnosi
Diagnostica di rete e risposte per Errore CORS: Preflight response does not have HTTP ok status (OPTIONS 404/500)
Eseguire una chiamata cURL da terminale.
Come leggere il risultato. Mostra gli header HTTP e lo stato di risposta del server.
curl -Iv https://tuodominio.itRisoluzione
Risoluzione consigliata per Errore CORS: Preflight response does not have HTTP ok status (OPTIONS 404/500)
Esegui i controlli standard sul server web o browser.
- Verificare la configurazione
- Applicare le correzioni indicate
- Ricaricare il servizio
Domande frequenti
Come risolvere rapidamente Errore CORS: Preflight response does not have HTTP ok status (OPTIONS 404/500)?
L'errore compare quando la richiesta preliminare HTTP OPTIONS (preflight) inviata dal browser fallisce con codice 404, 403 o 500 sul server.
Approfondimenti
- MDN Web Docs / RFC Standards documentazione_ufficiale