403 forbidden on zero trust tunnel
Hi, I'm setting up a tunnel, that successfully points to my node app running locally.
There's a file upload section in the app, and when I try to upload files I get a 403 forbidden error on the browser client. No errors server side, so I suspect the call never arrives to the server. Any ideas about what that could be? I have full TLS encryption.
25 Replies
locally everything works
is it a cloudflare page 403? if so maybe you have some rules somewhere blocking uploads
no it's a console error
yeah but 403 could be returned by either cloudflare or your server
can you log every request you get (on server), succsessful or not? that way you can determine if its cloudflare
i have it DYNAMIC
have you checked your waf
hi! what's the waf? apologies it's the first time i'm setting up a tunnel
ah the firewall? i'm looking into that
no i don't have it as it's a pro feature
its a free feature also
you're right, I just checked and I have no rules
okay
its tcp or udp uploads?
do you use local proxy?
upload size?
it's a 4.4mb mp3, i don't use local proxy
it's tcp i think, but i'm not sure. it's an html page upload
I'm thinking, maybe do i have to add these routes in the DNS? I have a post request API
/api/upload
for example. Do I have to add them in the tunnel configuration? as I just added the main index pageits from your code
yes it's a POST request
not a get
try a POST request
ok but the request never gets to my webserver
how do you know that
you will have to log it
or see tunnel logs
i can check tunnel logs
yes
i've set up a consol log when that request is called on my webserver and it's never called when I do it through tunnels
ok let me check thos
i logged the 403
your server issue
its not finding the logic
ok
thanks i'll look into that
it does this error only on the CF instance though
in the local one it doesn't