https://pulumi.com logo
#getting-started
Title
# getting-started
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.
Copy code
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
                 }
            },
          });
4 Views