Update from Sync Service
This commit is contained in:
18
工作记录/研发/反向代理解决跨域问题.md
Executable file
18
工作记录/研发/反向代理解决跨域问题.md
Executable file
@@ -0,0 +1,18 @@
|
||||
```
|
||||
```
|
||||
listen 1064;
|
||||
server_name 10.10.200.45;
|
||||
# charset koi8-r;
|
||||
# access_log logs/host.access.log main;
|
||||
location / {
|
||||
root html;
|
||||
```sql
|
||||
index index.html index.htm;
|
||||
```
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
|
||||
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
|
||||
proxy_pass http://10.10.200.45:1060;
|
||||
}
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user