core icon indicating copy to clipboard operation
core copied to clipboard

[BUG] Entering admin with https generates many errors

Open rafleze opened this issue 8 months ago • 2 comments

I deployed a cat instance on a server where kubernetes orchestrates the service. I added the CORE_USE_SECURE_PROTOCOLS=true parameter but when I navigate the admin I have many errors.

Screenshot 2024-06-10 alle 10 53 10

the problem is that in the endpoint called without the slash. when it redirects it breaks because it does it in http

image

Maybe the solution is explained at this link: https://stackoverflow.com/questions/63511413/fastapi-redirection-for-trailing-slash-returns-non-ssl-link

At the moment I solved the problem adding this parameter: FORWARDED_ALLOW_IPS

But I suppose that the redirect could be avoided adding "/" at the end of the url.

rafleze avatar Jun 10 '24 10:06 rafleze