Commit f1905911 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_core: ERP5Site_processJWTData code improvment. (thanks Julien M.)

parent 28918e87
if not data:
data = {}
origin = context.Base_getRequestHeader("Origin")
if origin:
if 'cors' in data and origin in data.get('cors', []):
return True
return False
if not data:
data = {}
return origin in data.get('cors', ()) if data else False
return True
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment