Adding support for ISSO_CORS_ORIGIN env variable to allow defining wildcard CORS origins
This commit is contained in:
parent
af3903e462
commit
361c596bf2
@ -84,6 +84,8 @@ def origin(hosts):
|
|||||||
hosts = [urlsplit(h) for h in hosts]
|
hosts = [urlsplit(h) for h in hosts]
|
||||||
|
|
||||||
def func(environ):
|
def func(environ):
|
||||||
|
if 'ISSO_CORS_ORIGIN' in environ:
|
||||||
|
return environ['ISSO_CORS_ORIGIN']
|
||||||
|
|
||||||
if not hosts:
|
if not hosts:
|
||||||
return "http://invalid.local"
|
return "http://invalid.local"
|
||||||
|
Loading…
Reference in New Issue
Block a user