axylos
axylos
CDCloudflare Developers
Created by axylos on 10/17/2024 in #pages-help
Preflight requests to static Pages are returning 405
I am trying to use cloudflare pages as static html content fetched by a SPA with a separate FE domain. Since the domains are different, browsers send an OPTIONS pre-flight request for each resource. CF Pages currently returns a 405 status code to any OPTIONS request. Is there a way to handle these pre-flight requests without a worker or CF function since that would get very expensive quickly. I've also tried to bypass these preflight requests to a separate domain with a rewrite rule, but that also gets complicated since it should only happen for OPTIONS methods.
1 replies