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] 20240210,更新模版1006(已配置websocket)跨域错误 #528

Open
4 tasks done
HyWell opened this issue May 7, 2024 · 6 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@HyWell
Copy link

HyWell commented May 7, 2024

Verify steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Latest 我已经使用 最新源码 测试过,问题依旧存在
  • Core 这是 QD 框架存在的问题,并非我所使用的 QD 早期版本(如 20210628及之前版号 等)或模板的特定问题
  • Meaningful 我提交的不是无意义的 催促更新或修复 请求

QD Version

20240210

Bug on OS

macOS

Bug on Platform

Docker/Linux 64位

To Reproduce

点击公共模版之后,会提示【更新公共模板失败, 请稍后刷新重试, 请勿连续刷新!】
错误代码:undefined, 错误原因:undefined 错误代码:1006, 错误原因:
/subscribe/1/updating/返回Cross origin websockets not allowed

Describe the Bug

错误代码:undefined, 错误原因:undefined 错误代码:1006, 错误原因:

QD config

已经添加websocket配置

QD log

Cross origin websockets not allowed

Expected behavior

可正常更新模版

Screenshots

image image
@HyWell HyWell added the bug Something isn't working label May 7, 2024
@acooler15
Copy link
Member

看日志报错是跨域问题,请提供下网站域名或IP以及端口配置信息

@HyWell
Copy link
Author

HyWell commented May 7, 2024

通过nas起的docker,docker配置

version: "3"

services:
  qd:
    image: qdtoday/qd:latest
    container_name: qd
    ports:
      - "49158:80"
    volumes:
      - "/volume1/docker/qiandao:/usr/src/app/config"
    environment:
      - QD_DEBUG=True
      - DOMAIN="mydomain:9000"
      - COOKIE_SECRET==*************
      - PBKDF2_ITERATIONS=400
      - AES_KEY=*************
      - DB_TYPE=sqlite3

@HyWell
Copy link
Author

HyWell commented May 7, 2024

nginx配置
image
image
image

@acooler15
Copy link
Member

在20240210版本中,存在websocket跨域的校验问题,不过在master分支中已修复该问题。
可参考git提交修改文件:ab30c54

@HyWell
Copy link
Author

HyWell commented May 7, 2024

能否发布新的docker镜像用来更新?

@a76yyyy
Copy link
Contributor

a76yyyy commented Jun 16, 2024

能否发布新的docker镜像用来更新?

使用 image: qdtoday/qd:dev 即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants