Download app/core/constants.py from saskarkhadka/classification-backend: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/spaces/saskarkhadka/classification-backend/resolve/main/app/core/constants.py
- Command line
-
hf download hf://spaces/saskarkhadka/classification-backend/app/core/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/saskarkhadka/classification-backend/resolve/main/app/core/constants.py
513 Bytes
| REQUEST_ID_HEADER = "X-Request-ID" | |
| SECURITY_HEADERS = { | |
| "X-Content-Type-Options": "nosniff", | |
| "X-Frame-Options": "DENY", | |
| "Referrer-Policy": "strict-origin-when-cross-origin", | |
| "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", | |
| "Cache-Control": "no-store, no-cache, must-revalidate max-age=0" | |
| } | |
| CSP_HEADER = { | |
| "Content-Security-Policy": "default-src 'none'; frame-ancestors 'none';", | |
| } | |
| UNAUTHORIZED_HEADERS = { | |
| "WWW-Authenticate": "Bearer realm='api'" | |
| } |