#403 forbidden on zero trust tunnel

48 messages · Page 1 of 1 (latest)

cobalt oriole
#

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.

#

locally everything works

vocal shell
#

is it a cloudflare page 403? if so maybe you have some rules somewhere blocking uploads

cobalt oriole
#

no it's a console error

vocal shell
#

yeah but 403 could be returned by either cloudflare or your server

cobalt oriole
vocal shell
#

can you log every request you get (on server), succsessful or not? that way you can determine if its cloudflare

gleaming umbra
#

include all response headers please

#

in particular the cf-cache-status header

cobalt oriole
#

i have it DYNAMIC

brave jetty
cobalt oriole
#

ah the firewall? i'm looking into that

#

no i don't have it as it's a pro feature

brave jetty
cobalt oriole
#

you're right, I just checked and I have no rules

brave jetty
#

okay

#

its tcp or udp uploads?

#

do you use local proxy?

#

upload size?

cobalt oriole
#

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 page

gleaming umbra
cobalt oriole
#

not a get

#

try a POST request

gleaming umbra
#

the fact you have a cf-cache-status header is evidence the error came from your origin

cobalt oriole
gleaming umbra
#

403s dont grow on trees

brave jetty
#

how do you know that

#

you will have to log it

#

or see tunnel logs

cobalt oriole
#

i can check tunnel logs

brave jetty
#

yes

cobalt oriole
#

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

cobalt oriole
#

i logged the 403

brave jetty
#

its not finding the logic

cobalt oriole
#

ok

#

thanks i'll look into that

#

it does this error only on the CF instance though