Open avivais opened 3 years ago
How can I achieve conditional allowed_origins based on withCredentials value?
allowed_origins
withCredentials
I want to return '*' when it's false, or a specific domain when it's true
'*'
false
true
How can I achieve conditional
allowed_origins
based onwithCredentials
value?I want to return
'*'
when it'sfalse
, or a specific domain when it'strue