1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

proxy: add COEP header for proxy mode to avoid errors

This commit is contained in:
Ilya Kreymer 2022-08-20 22:59:08 -07:00
parent c121198183
commit f0340c6898

View File

@ -212,6 +212,7 @@ class WbResponse(object):
self.status_headers.replace_header('Access-Control-Allow-Methods', allowed_methods)
self.status_headers.replace_header('Access-Control-Allow-Credentials', 'true')
self.status_headers.replace_header('Access-Control-Max-Age', '1800')
self.status_headers.replace_header('Cross-Origin-Resource-Policy', 'cross-origin')
return self
def __repr__(self):