Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(proxy): restrict proxy to exact /api routes only #3456

Merged

Conversation

khakanali
Copy link
Contributor

The proxy settings currently apply to all URLs that start with /api, including /apikey. This causes unintended routing where /apikey is proxied, resulting in a 404 error or incorrect loading behavior. The solution restricts proxy settings to exact /api routes or those that follow the /api/ pattern, allowing /apikey and similar routes to be handled by the frontend.

@HenryHengZJ
Copy link
Contributor

thanks @khakanali !

@HenryHengZJ HenryHengZJ merged commit 8466e1a into FlowiseAI:main Nov 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants