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

部署docker 镜像后的跨域问题 - Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header * #8060

Open
2 tasks done
chenmo01 opened this issue Oct 17, 2024 · 0 comments

Comments

@chenmo01
Copy link

chenmo01 commented Oct 17, 2024

Where is the problem?

https://docs.konghq.com/gateway/latest/install/docker/

What happened?

按照上诉方案安装后访问admin gui, 会出现网关无法正常运行的情况,如上图所示。
问题原因:
1、admin接口是8001端口,但是admin gui端口是8002端口;admin gui调用的接口有admin 8001端口相关的,导致跨域被阻。
2、跨域阻断是浏览器发出的,而不是admin。

What did you expect to happen?

建议提示跨域问题,提示可通过关闭浏览器跨域限制等方案正常访问

Code of Conduct and Community Expectations

  • I agree to follow this project's Code of Conduct
  • I agree to abide by the Community Expectations
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