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

bug: API操作模板配置插件不生效 #198

Open
q343959872 opened this issue Jan 2, 2025 · 0 comments
Open

bug: API操作模板配置插件不生效 #198

q343959872 opened this issue Jan 2, 2025 · 0 comments

Comments

@q343959872
Copy link

Current Behavior

API操作模板配置的跨域插件,在API中绑定之后没有对接口生效

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

1、配置API操作模板,添加插件cors,并且增加跨域配置,然后发布
{
"allow_credentials": false,
"allow_headers": "",
"allow_methods": "
",
"allow_origin": "",
"expose_headers": "
",
"max_age": 5
}
2、在API配置中绑定插件模板,选择添加的跨域操作模板,并且重新发布API
3、通过页面跨域访问该网关API
4、访问还是出现跨域问题

PS. 跨域插件已经排序到最前面,如果节点跨域插件全局开启API是可以跨域访问的,但是只是启用,然后绑定API操作模板插件没有生效
image

Environment

  • APINTO version (run apinto version): 0.19.4
  • Operating system (run uname -a): Linux redgpts04 3.10.0-1160.el7.x86_64 init #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant