SSL on subdomain not working properly

I am trying to make API calls to my API hosted on railway, using a custom subdomain. for some reason, even though i send the request with HTTPS://, the server is insisting on a no secure request.this is an issue because my API interacts with a website, and the website doesnt allow insecure third party connections. if anyone knows a workaround that would be great
No description
No description
11 Replies
Percy
Percy4d ago
Project ID: 92ab46c6-a288-4a2c-a741-2ad57a0f4ea6
timeattack
timeattackOP4d ago
92ab46c6-a288-4a2c-a741-2ad57a0f4ea6
Brody
Brody4d ago
please send the image again without blur
timeattack
timeattackOP4d ago
its just my endpoint
No description
Brody
Brody4d ago
what kind of app is this
timeattack
timeattackOP4d ago
just my fastapi backend
Brody
Brody4d ago
you likely need to tell it to trust the proxy headers
timeattack
timeattackOP4d ago
sorry if this is unrelated to railway but how do i do that?
Brody
Brody4d ago
I can't recall off the top of my head, but since it isn't related specifically to railway, a quick Google search should do you nicely
timeattack
timeattackOP4d ago
i c found hte issue it wasnt railway related it was a trailing issue i guess i had a / at the end of the url
Brody
Brody4d ago
you should also have your app trust the proxy headers too
Want results from more Discord servers?
Add your server