Skip to content

Commit e83ae5f

Browse files
committed
CORS allowCredentials
1 parent 6e11302 commit e83ae5f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

api/MyApp/AppHost.cs

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

1515
SetConfig(new HostConfig {
16-
1716
});
1817

1918
Plugins.Add(new SharpPagesFeature());
2019
Plugins.Add(new CorsFeature(allowOriginWhitelist:new[]{
21-
"http://localhost:3000", "https://nextjs-gh.web-templates.io" }));
20+
"http://localhost:3000", "https://nextjs-gh.web-templates.io" }, allowCredentials:true));
2221
}
23-
}
22+
}

0 commit comments

Comments
 (0)