I can't even describe the error
i am hosting an api on my website hcn1.net
and using a reverse proxy system
the api start acting so strange with the reverse proxy
when i access https://hcn1.net/api/v1/shortner
it redirects me to my project website
just try to access the link
when i use python to request this link it raise ConnectionAborted Error
i redeployed both the reverse proxy (caddy) and my api
somehow it doesn't work
and i don't want to access through the project link
and also another error on the API when i try to reach api/v1/user; it doesn't output the same as api/v1/user/ lmfao
23 Replies
Project ID:
7fefcee9-cd96-4f28-a13f-bb39de672eb4
7fefcee9-cd96-4f28-a13f-bb39de672eb4
caddy config tho
Brody my brother
when i access https://hcn1.net/api/v1/shortner it redirects me to my project websitethat would be your app sending a redirect
error on the API when i try to reach api/v1/user; it doesn't output the same as api/v1/user/
/api/v1/user
and /api/v1/user/
are not the same paths, youll want to setup some type of redirect trailing slash middlewarewhat app would redirect me there ?
i don't understand ur answer
what app would redirect me there ?your python app
yes
I am using revese proxy brody
i can see that, and this looks like issues with your app not caddy
Idk man i couldnt figure it out
I can show you my get request handler
For /shortner
Even tho
I use same syntax with my whole api
How is this any diffrent
this has nothing to do with how you're making the request, you need to figure out where that redirect is coming from
Theorically. I cam use burp suite to figure that out
I will try
good luck
Tnx brody
i found the issue brody
look
it used to be like this
and now like this
🧢
glad youve solved it
7 am here 🥹
bed time
true
goodnight broody
night night