Skip to content

Commit e6fdfce

Browse files
committed
Network: fix cors detail
1 parent 24e5445 commit e6fdfce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sections/zh-cn/network.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ HTTP headers 是在进行 HTTP 请求的交互过程中互相支会对方一些
182182

183183
> <a name="q-cors"></a> 什么是跨域请求? 如何允许跨域?
184184
185-
出于安全考虑, 默认情况下使用 XMLHttpRequest 和 Fetch 发起 HTTP 请求必须遵守同源策略, 即只能向相同域名请求. 向不同域名的请求被称作跨域请求 (cross-origin HTTP request). 可以通过设置 [CORS headers](https://developer.mozilla.org/en-US/docs/Glossary/CORS)`Access-Control-Allow-` 系列来允许跨域. 例如:
185+
出于安全考虑, 默认情况下使用 XMLHttpRequest 和 Fetch 发起 HTTP 请求必须遵守同源策略, 即只能向相同 host 请求 (host = hostname : port). 向不同 host 的请求被称作跨域请求 (cross-origin HTTP request). 可以通过设置 [CORS headers](https://developer.mozilla.org/en-US/docs/Glossary/CORS)`Access-Control-Allow-` 系列来允许跨域. 例如:
186186

187187
```
188188
location ~* ^/(?:v1|_) {

0 commit comments

Comments
 (0)