Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

wildcard CorsOrigins for multi tenant support #3024


User avatar
0
drevivo created

What is the correct configuration for supporting wildcard sub domain multi tenant

when configured as: "CorsOrigins": ...,http://www.xxxx.com/,http://abc.xxxx.com/,http://qwe.xxxx.com/"

it works for the "www" as well as "abc" and "qwe" subdomains, I would like to replace: ",http://abc.xxxx.com/,http://qwe.xxxx.com/" with: "http://*.xxxx.com/"

Also changing the CorsOrigin in the appsettings.json file does not take affect until I restart the IIS (azure websites) Is there a way to have these changes take affect without the restart?

Thanks


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Allowing all subdomains with a setting like *.mydomain.com is something we want to do but we couldn't manage to do it at the moment. We want to do it for next release of AspNet Zero.

    Also changing the CorsOrigin in the appsettings.json file does not take affect until I restart the IIS (azure websites) Is there a way to have these changes take affect without the restart?
    

    This is also not possible because ASP.NET Core works in this way.

  • User Avatar
    0
    drevivo created

    Thanks, looking forward to the wildcard support in future relesaes