Adding support for ISSO_CORS_ORIGIN env variable to allow defining wildcard CORS origins
@@ -84,6 +84,8 @@ def origin(hosts):
hosts = [urlsplit(h) for h in hosts]
def func(environ):
+ if 'ISSO_CORS_ORIGIN' in environ:
+ return environ['ISSO_CORS_ORIGIN']
if not hosts:
return "http://invalid.local"
