Skip to content

Commit f2945c6

Browse files
committed
Add support for dev CORS
1 parent 78c5fbb commit f2945c6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

api/MyApp/AppHost.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ public override void Configure(Container container)
1313
RawHttpHandlers.Add(ApiHandlers.Json("/api/{Request}"));
1414

1515
SetConfig(new HostConfig {
16+
AllowFileExtensions = { "webmanifest" },
1617
});
1718

1819
Plugins.Add(new SharpPagesFeature());
1920
Plugins.Add(new CorsFeature(allowOriginWhitelist:new[]{
20-
"http://localhost:3000", "https://nextjs-gh.web-templates.io" }, allowCredentials:true));
21+
"https://localhost:5001","http://localhost:5000","http://localhost:3000","https://nextjs-gh.web-templates.io"
22+
}, allowCredentials:true));
2123
}
2224
}

0 commit comments

Comments
 (0)