server: Make the CORS allowed origin configurable
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 80/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- docker, python
- 领域
- backend, documentation, security
调研方向
从链接指向的第59–70行中的server/docker/common/entrypoint.sh开始,找到说明API_BASE_PATH等选项的服务器README。通过环境变量配置允许的源,并将*设为默认值,然后记录此选项;当运维人员无需构建自定义镜像即可设置源,且默认行为保持不变时,工作就完成了。
由索引模型根据 Issue 内容生成。
描述
The Docker images always send Access-Control-Allow-Origin: * and
allow all methods:
Expected behavior: Operators can restrict which origins may call
the API, as with other server options (API_BASE_PATH, ...).
Actual behavior: The origin is hard-coded to *; changing it
needs a custom image.
Environment: develop @ 2773ac06, all three server images.
Possible fix: Read the origin from an env variable (e.g.
CORS_ALLOW_ORIGIN, default * to keep the current behavior) and
document it in the server README next to the other options.
- 主要语言
- Python
- 星标
- 107
- 派生
- 61
- 平均合并
- 1 小时 9 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
eclipse-basyx/basyx-python-sdk 的其他 Issue
-
adapter.json, adapter.xml: Falsy Extension and Qualifier values omitted可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
eclipse-basyx/basyx-python-sdk#682 ·
维护者通常 1 天内回复
-
server: XML responses contain `cursor="None"` on the last page可能已有人在做 @qiaobochi040726-source 于 13 天前认领。 未关闭bug good-first-issue server
难度 2/5 1-3 小时 新手友好度 82/100
eclipse-basyx/basyx-python-sdk#673 ·
维护者通常 1 天内回复
-
adapter.aasx: Failsafe writer adds duplicate parts for conflicting files可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug good-first-issue sdk
难度 2/5 1-3 小时 新手友好度 85/100
eclipse-basyx/basyx-python-sdk#671 ·
维护者通常 1 天内回复
-
adapter.aasx: Missing supplementary file aborts reading with failsafe可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug good-first-issue sdk
难度 2/5 1-3 小时 新手友好度 76/100
eclipse-basyx/basyx-python-sdk#665 ·
维护者通常 1 天内回复
-
bug server
难度 2/5 1-3 小时 新手友好度 76/100
eclipse-basyx/basyx-python-sdk#663 ·
维护者通常 1 天内回复
查看 eclipse-basyx/basyx-python-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
its-me-prash/vwgroup-connect-ha#2019 ·
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 86/100
KonstantinStarovoytov/kitden#21 ·
维护者通常 1 天内回复
-
Refactor未关闭
难度 2/5 1-3 小时 新手友好度 62/100
ehmatthes/gh-profiler#166 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
smart-on-fhir/smart-fetch#73 ·
-
good first issue help wanted
难度 1/5 1-3 小时 新手友好度 85/100
RizgarOzan/playcal#13 ·