Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
techhero-framework-config
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
techhero-framework-config
Commits
472ecffe
Commit
472ecffe
authored
Nov 16, 2022
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update techhero-framework-gateway-local.yml
parent
b88ba4c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
techhero-framework-gateway-local.yml
+11
-18
No files found.
techhero-framework-gateway-local.yml
View file @
472ecffe
spring
:
spring
:
cloud
:
cloud
:
gateway
:
gateway
:
globalcors
:
# 全局的跨域处理
globalcors
:
# 全局的跨域处理
add-to-simple-url-handler-mapping
:
true
# 解决options请求被拦截问题
add-to-simple-url-handler-mapping
:
true
# 解决options请求被拦截问题
corsConfigurations
:
corsConfigurations
:
'
[/**]'
:
'
[/**]'
:
allowedOrigins
:
# 允许哪些网站的跨域请求 allowedOrigins: “*” 允许所有网站
allowedOrigins
:
"
*"
-
"
https://localhost:8001"
allowedMethods
:
"
*"
-
"
https://localhost:8002"
-
"
https://localhost:8003"
allowedHeaders
:
"
*"
# 允许在请求中携带的头信息
allowedMethods
:
# 允许的跨域ajax的请求方式 “*” 允许所有
allowCredentials
:
true
# 是否允许携带cookie
-
"
GET"
maxAge
:
360000
# 这次跨域检测的有效期
-
"
POST"
-
"
DELETE"
-
"
PUT"
-
"
OPTIONS"
allowedHeaders
:
"
*"
# 允许在请求中携带的头信息
allowCredentials
:
true
# 是否允许携带cookie
maxAge
:
360000
# 这次跨域检测的有效期
http
:
http
:
multipart
:
multipart
:
...
...
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