Unable to have tunnel protected with both OTP login and Service Token

What is the name of the domain?

noon.wtf

What is the issue you’re encountering

I am not able of setting service up auth token, no matter what. I have set a Login to my self-hosted backend (ComfyUI instance). That works. Now I want to connect a external web app deployed in Vercel so I can fetch the backend’s API. The system works correctly if already logged in. But when I try to authenticate with my service token, I am redirected to the login page. Simply explained, I just want our users to login to our backend ComfyUI with OTP and use a web app in another origin that make API requests authenticated with tokens.

What steps have you taken to resolve the issue?

Setup CORS in my app settings (Access-Control-Allow-Credentials:true, Access-Control-Allow-Origin: myexternalcomain.com. Access-Control-Allow-Methods: all, Access-Control-Allow-Headers: all
Bypass options (doesn’t work)

What are the steps to reproduce the issue?

Have a login system (OTP) and a Service Auth Token actives
Am I missing something super obvious? I have just started using Cloudflare

Screenshot of the error

Sorry, I forgot, I know it’s related to the preflight request since I manage to get my cf_cookie doing the same auth request from Postman.

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