classification-backend / app /core /constants.py
saskarkhadka's picture
restructure and add telemtry
9766e10
Raw History Blame Contribute Delete
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'"
}