Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4d87c1eb
authored
Jun 23, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
04919e51
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
conf/config_production.ini
controller/middleware_controller.go
conf/config_production.ini
View file @
4d87c1eb
[web]
port
=
9000
port
=
20001
mode
=
release
cors_domain
=
bom.ichunt.com
...
...
@@ -12,7 +12,7 @@ api_url = http://47.106.60.211:60004
[es]
url
=
http://172.18.137.29:9211
urls
=
http://172.18.137.29:9211,172.18.137.30:9211
urls
=
http://172.18.137.29:9211,
http://
172.18.137.30:9211
index_name
=
future,rochester,tme,verical,element14,digikey,chip1stop,aipco,arrow,alliedelec,avnet,mouser,zhuanmai,peigenesis,powell,rs,buerklin,liexin_ziying
search_supplier
=
future,rochester,tme,verical,element14,digikey,chip1stop,aipco,arrow,alliedelec,avnet,mouser,peigenesis,powell,rs,buerklin,zhuanmai
hk_delivery_type_supplier
=
future,rochester,tme,verical,element14,digikey,chip1stop,aipco,arrow,alliedelec,avnet,mouser,peigenesis,powell,rs,buerklin
...
...
controller/middleware_controller.go
View file @
4d87c1eb
...
...
@@ -26,7 +26,6 @@ func Cors_Middleware() gin_.Middleware {
for
_
,
domain
:=
range
corsDomains
{
c
.
Header
(
"Access-Control-Allow-Origin"
,
domain
)
}
c
.
Header
(
"Access-Control-Allow-Origin"
,
"http://bom.liexin.com"
)
c
.
Header
(
"Access-Control-Allow-Headers"
,
"Content-Type,AccessToken,X-CSRF-Token, Authorization, Token"
)
c
.
Header
(
"Access-Control-Allow-Methods"
,
"POST, GET, OPTIONS"
)
c
.
Header
(
"Access-Control-Expose-Headers"
,
"Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type"
)
...
...
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