Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

访问/api.php/v1/products提示没有授权 #3

Open
reply2future opened this issue Jul 15, 2022 · 0 comments
Open

访问/api.php/v1/products提示没有授权 #3

reply2future opened this issue Jul 15, 2022 · 0 comments

Comments

@reply2future
Copy link

环境

宿主机:centos 7
容器:使用本仓库创建如下
image

问题

想要和gitlab集成,通过教程配置如下
image

宿主机上面访问:http://localhost:8080/api.php/v1/products/1? 直接提示{"error":"Unauthorized"},而在另外一台电脑上面访问宿主机,是可以直接访问的,比如说http://192.168.2.59:8080/api.php/v1/products/1?,有正确返回一堆json数据,查看日志如下
image

重现

  1. 使用本仓库构建开源版17.2并且运行
  2. 安装禅道时导入demo数据
  3. 按照第三方应用中集成禅道教程,如上面第一张图配置
  4. 宿主机访问api地址,比如:http://localhost:8080/api.php/v1/products/1?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant