Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
code
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
solho
code
Commits
cd2a7481
Commit
cd2a7481
authored
Nov 10, 2021
by
solho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reflactor: cors相關改設 [CorsHandle]
parent
867545ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
WebAPI/Controllers/Cur_hisController.cs
WebAPI/Controllers/Cur_hisController.cs
+12
-8
No files found.
WebAPI/Controllers/Cur_hisController.cs
View file @
cd2a7481
...
@@ -36,8 +36,9 @@ namespace WebAPI.Controllers
...
@@ -36,8 +36,9 @@ namespace WebAPI.Controllers
/// <param name="Get_cur_his_id"></param>
/// <param name="Get_cur_his_id"></param>
/// <returns></returns>
/// <returns></returns>
[
Route
(
"Get_cur_his"
)]
[
Route
(
"Get_cur_his"
)]
[
EnableCors
(
origins
:
"http://120.78.73.107:8888,https://ipeasy.purplevineip.com,https://ipeasy.essenptl.com"
,
//[EnableCors(origins: "http://120.78.73.107:8888,https://ipeasy.purplevineip.com,https://ipeasy.essenptl.com",
headers
:
"*"
,
methods
:
"*"
,
SupportsCredentials
=
true
)]
//headers: "*", methods: "*", SupportsCredentials = true)]
[
CorsHandle
]
[
HttpPost
]
[
HttpPost
]
[
HttpGet
]
[
HttpGet
]
public
MessageList
Get_cur_his
(
String
Get_cur_his_id
)
public
MessageList
Get_cur_his
(
String
Get_cur_his_id
)
...
@@ -127,8 +128,9 @@ namespace WebAPI.Controllers
...
@@ -127,8 +128,9 @@ namespace WebAPI.Controllers
/// <param name="trids"></param>
/// <param name="trids"></param>
/// <returns></returns>
/// <returns></returns>
[
Route
(
"Download_cur_hiss_Excel"
)]
[
Route
(
"Download_cur_hiss_Excel"
)]
[
EnableCors
(
origins
:
"http://120.78.73.107:8888,https://ipeasy.purplevineip.com,https://ipeasy.essenptl.com"
,
//[EnableCors(origins: "http://120.78.73.107:8888,https://ipeasy.purplevineip.com,https://ipeasy.essenptl.com",
headers
:
"*"
,
methods
:
"*"
,
SupportsCredentials
=
true
)]
//headers: "*", methods: "*", SupportsCredentials = true)]
[
CorsHandle
]
[
HttpPost
]
[
HttpPost
]
[
HttpGet
]
[
HttpGet
]
public
HttpResponse
Download_cur_hiss_Excel
(
String
trids
)
public
HttpResponse
Download_cur_hiss_Excel
(
String
trids
)
...
@@ -336,8 +338,9 @@ namespace WebAPI.Controllers
...
@@ -336,8 +338,9 @@ namespace WebAPI.Controllers
/// <param name="trids"></param>
/// <param name="trids"></param>
/// <returns></returns>
/// <returns></returns>
[
Route
(
"Get_cur_hiss"
)]
[
Route
(
"Get_cur_hiss"
)]
[
EnableCors
(
origins
:
"http://120.78.73.107:8888,https://ipeasy.purplevineip.com,https://ipeasy.essenptl.com"
,
//[EnableCors(origins: "http://120.78.73.107:8888,https://ipeasy.purplevineip.com,https://ipeasy.essenptl.com",
headers
:
"*"
,
methods
:
"*"
,
SupportsCredentials
=
true
)]
//headers: "*", methods: "*", SupportsCredentials = true)]
[
CorsHandle
]
[
HttpPost
]
[
HttpPost
]
[
HttpGet
]
[
HttpGet
]
//[EnableCors(origins: "*", headers: "*", methods: "*")]
//[EnableCors(origins: "*", headers: "*", methods: "*")]
...
@@ -437,8 +440,9 @@ namespace WebAPI.Controllers
...
@@ -437,8 +440,9 @@ namespace WebAPI.Controllers
}
}
[
Route
(
"Get_cur_hiss_test"
)]
[
Route
(
"Get_cur_hiss_test"
)]
[
EnableCors
(
origins
:
"http://120.78.73.107:8888,https://ipeasy.purplevineip.com,https://ipeasy.essenptl.com"
,
//[EnableCors(origins: "http://120.78.73.107:8888,https://ipeasy.purplevineip.com,https://ipeasy.essenptl.com",
headers
:
"*"
,
methods
:
"*"
,
SupportsCredentials
=
true
)]
//headers: "*", methods: "*", SupportsCredentials = true)]
[
CorsHandle
]
[
HttpPost
]
[
HttpPost
]
[
HttpGet
]
[
HttpGet
]
[
HttpOptions
]
[
HttpOptions
]
...
...
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