Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update cors.md, Explanation of how routing HTTP method configuration affects browser behavior when the CORS plugin is activated #11602

Open
wants to merge 1 commit into
base: release/3.10
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/zh/latest/plugins/cors.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,7 @@ curl http://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $admin_key" -X P
}
}'
```

## 备注

基于现在浏览器工作模式,配置`cors` 插件后需要检查对应路由配置中`HTTP方法`是否开启了`OPTIONS`。如果未开启`OPTIONS`方法,浏览器将无法按照`cors` 插件的配置正常工作。
Loading