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

希望可以添加跨域支持! #276

Closed
Evanora-y opened this issue Apr 27, 2024 · 4 comments
Closed

希望可以添加跨域支持! #276

Evanora-y opened this issue Apr 27, 2024 · 4 comments

Comments

@Evanora-y
Copy link

MaxKB 版本

1.0.4

请描述您的需求或者改进建议

希望可以添加跨域支持!

请描述你建议的实现方案

添加请求头即可

附加信息

No response

@tongque0
Copy link
Contributor

我也需要这个

@shaohuzhang1
Copy link
Collaborator

不允许跨域是为了安全, 最好是在页面加一个开关 设置可跨域的地址。已经在安排了

@Evanora-y
Copy link
Author

太棒了

@ljp888
Copy link

ljp888 commented May 2, 2024

修改 apps/common/middleware/static_headers_middleware.py 这个文件 添加跨域的头就能跨域了 不过下个版本应该会加

@baixin513 baixin513 added this to the v1.1.2 milestone May 6, 2024
wangdan-fit2cloud added a commit that referenced this issue May 8, 2024
shaohuzhang1 added a commit that referenced this issue May 8, 2024
lunf pushed a commit to lunf/MaxKB that referenced this issue May 12, 2024
commit 6a734cd
Merge: 45205e2 d2d35b6
Author: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com>
Date:   Fri May 10 14:57:47 2024 +0800

    Merge pull request 1Panel-dev#415 from 1Panel-dev/pr@main@fix-bug

    fix: 文档设置相似度问题修复

commit d2d35b6
Author: wangdan-fit2cloud <dan.wang@fit2cloud.com>
Date:   Fri May 10 14:55:47 2024 +0800

    fix: 文档设置相似度问题修复

commit 45205e2
Merge: d724a54 19057b1
Author: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com>
Date:   Fri May 10 14:15:32 2024 +0800

    Merge pull request 1Panel-dev#414 from 1Panel-dev/pr@main@peaf-login

    perf: 优化登录页面

commit 19057b1
Author: wangdan-fit2cloud <dan.wang@fit2cloud.com>
Date:   Fri May 10 14:13:44 2024 +0800

    perf: 优化登录页面

commit d724a54
Merge: 18861b4 61a0b2c
Author: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com>
Date:   Fri May 10 11:06:37 2024 +0800

    Merge pull request 1Panel-dev#411 from 1Panel-dev/pr@main@fix-bug

    fix: 修复版本号翻译问题

commit 61a0b2c
Author: wangdan-fit2cloud <dan.wang@fit2cloud.com>
Date:   Fri May 10 11:05:04 2024 +0800

    fix: 修复版本号翻译问题

commit 18861b4
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Thu May 9 20:45:14 2024 +0800

    fix: 修复上传文档懒加载无法加载第二页 (1Panel-dev#407)

commit b123f0f
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Thu May 9 19:54:25 2024 +0800

    perf: 优化文档分段前端懒加载 (1Panel-dev#406)

commit cf4ce7e
Merge: 7f30d03 8038385
Author: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com>
Date:   Thu May 9 18:02:47 2024 +0800

    Merge pull request 1Panel-dev#405 from 1Panel-dev/pr@main@perf-cross_domain

    跨域地址过滤空行

commit 8038385
Author: wangdan-fit2cloud <dan.wang@fit2cloud.com>
Date:   Thu May 9 17:58:21 2024 +0800

    perf: 跨域地址过滤空行

commit 5838a4f
Author: wangdan-fit2cloud <dan.wang@fit2cloud.com>
Date:   Thu May 9 17:46:57 2024 +0800

    perf: 分段预览懒加载

commit 7f30d03
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Thu May 9 15:55:35 2024 +0800

    fix: 修复分词超过数据库最大限制 (1Panel-dev#401)

commit 8159fef
Merge: 3fb6192 61819fd
Author: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com>
Date:   Thu May 9 10:27:17 2024 +0800

    Merge pull request 1Panel-dev#397 from 1Panel-dev/pr@main@fix-bug

    fix: 修复批量迁移问题

commit 61819fd
Author: wangdan-fit2cloud <dan.wang@fit2cloud.com>
Date:   Thu May 9 10:24:38 2024 +0800

    fix: 修复批量迁移问题

commit 3fb6192
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Wed May 8 18:46:58 2024 +0800

    fix: 跨域失效 (1Panel-dev#394)

commit 69e39f5
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Wed May 8 17:40:01 2024 +0800

    feat: 导入时支持设置分段标题为关联问题(1Panel-dev#177) (1Panel-dev#392)

commit 4da8b1b
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Wed May 8 17:31:56 2024 +0800

    feat: 直接回答支持设置相似度值(1Panel-dev#371)

commit 267be44
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Wed May 8 17:13:13 2024 +0800

    feat: 跨域设置(1Panel-dev#276)

commit d4e742f
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Wed May 8 10:40:15 2024 +0800

    feat: 分段管理支持批量迁移,删除分段 1Panel-dev#113,1Panel-dev#103

commit 8204d5f
Merge: 48496bc 23ed472
Author: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com>
Date:   Tue May 7 17:09:20 2024 +0800

    Merge pull request 1Panel-dev#381 from 1Panel-dev/pr@main@fix-bugs

    fix: 修复快捷修改组件问题和优化支持一键清空输入内容

commit 23ed472
Author: wangdan-fit2cloud <dan.wang@fit2cloud.com>
Date:   Tue May 7 17:06:39 2024 +0800

    fix: 修复快捷修改组件问题和优化可一键删除输入内容

commit 48496bc
Merge: 7a08f03 1e67f39
Author: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com>
Date:   Tue May 7 16:34:43 2024 +0800

    Merge pull request 1Panel-dev#380 from 1Panel-dev/pr@main@perf-migrate

    perf: 优化迁移文档过滤知识库选项

commit 1e67f39
Author: wangdan-fit2cloud <dan.wang@fit2cloud.com>
Date:   Tue May 7 16:30:10 2024 +0800

    perf: 优化迁移文档过滤知识库选项

commit 7a08f03
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Tue May 7 13:54:13 2024 +0800

    fix: 创建新用户时用户名含有 0 时校验不通过 1Panel-dev#358 (1Panel-dev#375)

commit 77d71f9
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Tue May 7 13:50:39 2024 +0800

    fix: 修改文档向量化重试,文档状态处理 (1Panel-dev#373)

commit c1b6ec6
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Tue May 7 12:18:03 2024 +0800

    fix: 导入文档中含有特殊字符时,导入失败。 1Panel-dev#363 (1Panel-dev#372)

commit 7d62842
Author: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com>
Date:   Tue May 7 10:34:38 2024 +0800

    fix: ui文件打包报错 1Panel-dev#348 (1Panel-dev#368)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants