Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
data-center-auto
Commits
bcbbae4a
Commit
bcbbae4a
authored
Dec 05, 2018
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置跨域
parent
d857747c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
FolderProfile.pubxml
AutoTurnOver/Properties/PublishProfiles/FolderProfile.pubxml
+4
-0
Startup.cs
AutoTurnOver/Startup.cs
+1
-0
No files found.
AutoTurnOver/Properties/PublishProfiles/FolderProfile.pubxml
View file @
bcbbae4a
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<WebPublishMethod>
FileSystem
</WebPublishMethod>
<WebPublishMethod>
FileSystem
</WebPublishMethod>
<PublishProvider>
FileSystem
</PublishProvider>
<PublishProvider>
FileSystem
</PublishProvider>
<LastUsedBuildConfiguration>
Release
</LastUsedBuildConfiguration>
<LastUsedBuildConfiguration>
Release
</LastUsedBuildConfiguration>
<LastUsedBuildConfiguration>
Debug
</LastUsedBuildConfiguration>
<LastUsedPlatform>
Any CPU
</LastUsedPlatform>
<LastUsedPlatform>
Any CPU
</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish
/>
<SiteUrlToLaunchAfterPublish
/>
<LaunchSiteAfterPublish>
True
</LaunchSiteAfterPublish>
<LaunchSiteAfterPublish>
True
</LaunchSiteAfterPublish>
...
@@ -18,6 +19,8 @@
...
@@ -18,6 +19,8 @@
<_IsPortable>
true
</_IsPortable>
<_IsPortable>
true
</_IsPortable>
<publishUrl>
C:\WebSite\SkuAutoTurn
</publishUrl>
<publishUrl>
C:\WebSite\SkuAutoTurn
</publishUrl>
<DeleteExistingFiles>
False
</DeleteExistingFiles>
<DeleteExistingFiles>
False
</DeleteExistingFiles>
<publishUrl>
F:\dataCenter_fu
</publishUrl>
<DeleteExistingFiles>
True
</DeleteExistingFiles>
<RuntimeIdentifier>
win-x64
</RuntimeIdentifier>
<RuntimeIdentifier>
win-x64
</RuntimeIdentifier>
</PropertyGroup>
</PropertyGroup>
</Project>
</Project>
\ No newline at end of file
AutoTurnOver/Startup.cs
View file @
bcbbae4a
...
@@ -58,6 +58,7 @@ namespace AutoTurnOver
...
@@ -58,6 +58,7 @@ namespace AutoTurnOver
app
.
UseHttpsRedirection
();
app
.
UseHttpsRedirection
();
// 跨域配置
app
.
UseCors
(
builder
=>
app
.
UseCors
(
builder
=>
builder
.
AllowAnyOrigin
()
builder
.
AllowAnyOrigin
()
.
AllowAnyMethod
()
.
AllowAnyMethod
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment