https://pulumi.com logo
Title
q

quiet-architect-74241

05/27/2021, 3:51 PM
How do I set CORS settings for 2 (Azure) webapps that are allowed to call each other? So, Webapp1 allows calls from Webapp2 and vice versa.
var webapp1 = new WebApp(name,
       new WebAppArgs
       {
           Kind = "app,linux",
           SiteConfig = new SiteConfigArgs
           {
                Cors = new CorsSettingsArgs
                {
                    AllowedOrigins = {
                      // how do I specify WebApp2 here?
                    },
                    SupportCredentials = false
                 }
            },
          });