feat: add ENABLE_LOCAL_WEB_FETCH to protect against SSRF attacks

This commit is contained in:
Jun Siang Cheah
2024-04-29 20:55:17 +01:00
parent e8abaa8bea
commit 1c4e63f71e
4 changed files with 45 additions and 1 deletions

View File

@@ -71,3 +71,7 @@ class ERROR_MESSAGES(str, Enum):
EMPTY_CONTENT = "The content provided is empty. Please ensure that there is text or data present before proceeding."
DB_NOT_SQLITE = "This feature is only available when running with SQLite databases."
INVALID_URL = (
"Oops! The URL you provided is invalid. Please double-check and try again."
)