Skip to content

Commit ec1046d

Browse files
Update cors.md
对路由中http方法的配置导致cros插件生效后浏览器无法按照预期工作的说明
1 parent 5433dce commit ec1046d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/zh/latest/plugins/cors.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,7 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $admin_key" -X P
125125
}
126126
}'
127127
```
128+
129+
## 备注
130+
131+
基于现在浏览器工作模式,配置`cors` 插件后需要检查对应路由配置中`HTTP方法`是否开启了`OPTIONS`。如果未开启`OPTIONS`方法,浏览器将无法按照`cors` 插件的配置正常工作。

0 commit comments

Comments
 (0)