Support CORS headers to http receive-pack/send-pack like gogs #2741

Closed
opened 2025-11-02 04:46:16 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @abhishiv on GitHub (Jan 11, 2019).

  • Gitea version (or commit ref): 1.5.0

Description

Hello, I would like to propose adding Access-Control-Allow-Origin header flag to gitea.

I'm in terested in this in order to get @isomorphic-git/isomorphic-git working with gitea in the browser. Gogs already supports it.

[http]
ACCESS_CONTROL_ALLOW_ORIGIN = *

...

Further background

cc: @wmhilton

Originally created by @abhishiv on GitHub (Jan 11, 2019). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.5.0 ## Description Hello, I would like to propose adding `Access-Control-Allow-Origin` header flag to gitea. I'm in terested in this in order to get [@isomorphic-git/isomorphic-git](https://github.com/isomorphic-git/isomorphic-git) working with gitea in the browser. Gogs [already](https://isomorphic-git.org/blog/2018/04/07/gogs-adds-cors-headers-for-isomorphic-git.html) supports it. ``` [http] ACCESS_CONTROL_ALLOW_ORIGIN = * ``` ... Further [background](https://github.com/isomorphic-git/isomorphic-git#cors-support) cc: @wmhilton
GiteaMirror added the type/enhancement label 2025-11-02 04:46:16 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2741