You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
now that user_auth is a module, how would I customize CORS given I need to allow other domains to access api.my_domain_name. #37
We could have both. Always specify this snippet for cors stuff, and then have another variable that allows a user to pass in additional configuration, which we would just append in that block.
Activity
bmonkman commentedon Mar 23, 2021
Yeah unfortunately with the nginx ingress the only way to allow multiple CORS domains is by adding a configuration snippet like this:
So inside the module we could add the configuration snippet, and add a variable to accept a list of domains or a domain regex.
karimkawambwa commentedon Mar 23, 2021
having this variable would be great if this is the best way (i can't think of any other way). I had a snippet before that I would like to use.
bmonkman commentedon Mar 23, 2021
We could have both. Always specify this snippet for cors stuff, and then have another variable that allows a user to pass in additional configuration, which we would just append in that block.