We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
API操作模板配置的跨域插件,在API中绑定之后没有对接口生效
No response
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操作模板插件没有生效
apinto version
uname -a
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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操作模板插件没有生效
Environment
apinto version
): 0.19.4uname -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/LinuxThe text was updated successfully, but these errors were encountered: