mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2026-07-21 17:05:24 -04:00
Security Issue: Internal API URL and Token exposed in client code. #36
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @racerxdl on GitHub (Jul 15, 2024).
Currently the env APP_URL is getting exposed directly on client side because webpack adds it to the bundle. This is an issue because it exposed information about internal infrastructure and even the token for acessing the API directly.
@racerxdl commented on GitHub (Jul 15, 2024):
PS: This can be solved by removing the _PUBLIC prefix on the env variables (since they only need to be at backend side)