What is the name of the domain?
aegisai.xyz
What is the issue you’re encountering
No matter what I can’t get CORS to work for my back end that I’m running on my desktop and trying to run through cloudflare tunnels. I tried to set it up in access to only allow requests with a service token to work and to set up cors to only allow my front end to access it. No matter what it seems to block my requests due to CORS.
What steps have you taken to resolve the issue?
So many things. I’ve followed every guide I could find. Messed around with workers to Set static access-control-allow-origin to * in the response headers. Tried different configuration options for CORS including setting it to allow any origin. I just can’t figure this out and I’ve been basically banging my head against my desk for hours now. If anyone could give me a quick overview of what the process is supposed to look like to set up a secure back end api through tunnels protected with access I’d really appreciate it. For context I’m also running the front end react app through the same tunnel and that’s what isn’t able to get through. Right now I’ve somehow gotten to the point where requests are going through fine on postman but when using the exact same service token in the front end CORS blocks it. At one point one endpoint was working in the front end but the rest weren’t. Also, I’m hoping to make a flutter app that will use the api as well, so if there’s anything I’ll want to consider to make that work I’d appreciate advice there as well. Sorry this has kinda been a rambling mess, I am not sane at this point.
What are the steps to reproduce the issue?
I have no clue honestly.