mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
10 lines
372 B
Python
10 lines
372 B
Python
def main(request, response):
|
|
response.headers.set("Cache-Control", "no-store")
|
|
|
|
# Allow simple requests, but deny preflight
|
|
if request.method != "OPTIONS":
|
|
response.headers.set("Access-Control-Allow-Credentials", "true")
|
|
response.headers.set("Access-Control-Allow-Origin", request.headers.get("origin"))
|
|
else:
|
|
response.status = 400
|