qd-today / qd

QD [v20240210] —— HTTP请求定时任务自动执行框架 base on HAR Editor and Tornado Server
https://qd-today.github.io/qd/
MIT License
4.2k stars 546 forks source link

[Bug] 20240210,更新模版1006(已配置websocket)跨域错误 #528

Open HyWell opened 4 months ago

HyWell commented 4 months ago

Verify steps

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
acooler15 commented 4 months ago

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

HyWell commented 4 months ago

通过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 commented 4 months ago

nginx配置

image image image
acooler15 commented 4 months ago

在20240210版本中,存在websocket跨域的校验问题,不过在master分支中已修复该问题。 可参考git提交修改文件:https://github.com/qd-today/qd/commit/ab30c54b176892e05772818e2ded73f684908c21

HyWell commented 4 months ago

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

a76yyyy commented 2 months ago

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

使用 image: qdtoday/qd:dev 即可