CORS and 301 redirect

I have a working API + webserver that uses CORS. When I try and proxy the traffic through Cloudflare, CF returns a 301 redirect which breaks CORS. How do I pass the OPTIONS method correctly or proxy the traffic without CORS being affected?

I found the issue was, Cloudflare did not use HTTPS by default to the backend server, Strict mode was enabled and everything is working as it should.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.