Commit bcbbae4a by lizefeng

配置跨域

parent d857747c
......@@ -8,6 +8,7 @@
<WebPublishMethod>FileSystem</WebPublishMethod>
<PublishProvider>FileSystem</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
......@@ -18,6 +19,8 @@
<_IsPortable>true</_IsPortable>
<publishUrl>C:\WebSite\SkuAutoTurn</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
<publishUrl>F:\dataCenter_fu</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
</Project>
\ No newline at end of file
......@@ -58,6 +58,7 @@ namespace AutoTurnOver
app.UseHttpsRedirection();
// 跨域配置
app.UseCors(builder =>
builder.AllowAnyOrigin()
.AllowAnyMethod()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment