cheshire-cat-ai / core

Production ready AI agent framework
https://cheshirecat.ai
GNU General Public License v3.0
2.14k stars 282 forks source link

[BUG] Entering admin with https generates many errors #850

Open rafleze opened 3 weeks ago

rafleze commented 3 weeks ago

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.

zAlweNy26 commented 3 weeks ago

Can you try this PR #837 and tell us if the problem persists?