Skip to content

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

@chenmo01

Description

@chenmo01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions