Stealth Mode: Disguised JSON as PlainText to bypass corporate filters
This commit is contained in:
1 parent
692964625d
commit
bb8ba326ff
2 files changed
+17
-10
No files matched your search
@@ -7,19 +7,17 @@ ai-gateway.ldex.dev {
|
||||
output stdout
|
||||
}
|
||||
|
||||
# Stealth CORS: Reflect the requester's origin instead of using "*"
|
||||
# This avoids the "*, *" duplication and looks less suspicious to Zscaler
|
||||
# Remove the server signature so Zscaler doesn't know it's a Python app
|
||||
header {
|
||||
-Server
|
||||
Access-Control-Allow-Origin "{header.Origin}"
|
||||
Access-Control-Allow-Methods "GET, POST, OPTIONS"
|
||||
Access-Control-Allow-Headers "*"
|
||||
Access-Control-Expose-Headers "*"
|
||||
Access-Control-Allow-Credentials "true"
|
||||
# 'defer' ensures we override any headers sent by the backend
|
||||
defer
|
||||
}
|
||||
|
||||
# Handle preflights immediately
|
||||
@options {
|
||||
method OPTIONS
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user