blob: 06d30c303c601ccabcfc1e3810c965dc45016538 (
plain)
1
2
3
4
5
6
7
8
|
def main(request, response):
response.headers.set(b"Content-Type", request.GET.first(b"type"))
origin = request.headers.get('Origin')
if origin is not None:
response.headers.set(b"Access-Control-Allow-Origin", origin)
response.headers.set(b"Access-Control-Allow-Credentials", b"true")
return request.GET.first(b"content")
|