How to resolve 'preflight is invalid (redirect)' or 'redirect is not allowed for a preflight request'
问题 I have followed this step to setup my server to enable CORS. https://docs.microsoft.com/en-us/aspnet/web-api/overview/security/enabling-cross-origin-requests-in-web-api But now in my browser dev console, I see this error message: XMLHttpRequest cannot load https://serveraddress/abc. Response for preflight is invalid (redirect) Do you know what can I do to fix it? I am making a CORS request in HTTPS. I think that is causing the \'preflight is invalid (redirect)\' failure. But I don\'t know why