[PR #2302] Headscale: Added an option to set an Access-Control-Allow-Origin resp… #2593

Open
opened 2025-12-29 03:21:57 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2302
Author: @Jisse-Meruma
Created: 12/16/2024
Status: 🔄 Open

Base: mainHead: enable-cors-with-config


📝 Commits (2)

  • 68ce697 Headscale: Added an option to set an Access-Control-Allow-Origin response header to enable Cross-Origin Resource Sharing (CORS)
  • cbf6a43 Block ability to use '*'. replace origins string to a list to config. enable cors for specific endpoints (#2)

📊 Changes

3 files changed (+84 additions, -0 deletions)

View changed files

📝 config-example.yaml (+10 -0)
📝 hscontrol/app.go (+56 -0)
📝 hscontrol/types/config.go (+18 -0)

📄 Description

add a header to enable Cross-Origin Resource Sharing (CORS) #2301

  • have read the CONTRIBUTING.md file
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/2302 **Author:** [@Jisse-Meruma](https://github.com/Jisse-Meruma) **Created:** 12/16/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `enable-cors-with-config` --- ### 📝 Commits (2) - [`68ce697`](https://github.com/juanfont/headscale/commit/68ce697562120bd121a2f7b14e25223d6f214862) Headscale: Added an option to set an Access-Control-Allow-Origin response header to enable Cross-Origin Resource Sharing (CORS) - [`cbf6a43`](https://github.com/juanfont/headscale/commit/cbf6a43e0d4e893501457e080313831a3ec0dd59) Block ability to use '*'. replace origins string to a list to config. enable cors for specific endpoints (#2) ### 📊 Changes **3 files changed** (+84 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `config-example.yaml` (+10 -0) 📝 `hscontrol/app.go` (+56 -0) 📝 `hscontrol/types/config.go` (+18 -0) </details> ### 📄 Description add a header to enable Cross-Origin Resource Sharing (CORS) #2301 <!-- Headscale is "Open Source, acknowledged contribution", this means that any contribution will have to be discussed with the Maintainers before being submitted. This model has been chosen to reduce the risk of burnout by limiting the maintenance overhead of reviewing and validating third-party code. Headscale is open to code contributions for bug fixes without discussion. If you find mistakes in the documentation, please submit a fix to the documentation. --> <!-- Please tick if the following things apply. You… --> - [X] have read the [CONTRIBUTING.md](./CONTRIBUTING.md) file - [X] raised a GitHub issue or discussed it on the projects chat beforehand - [ ] added unit tests - [ ] added integration tests - [X] updated documentation if needed - [ ] updated CHANGELOG.md <!-- If applicable, please reference the issue using `Fixes #XXX` and add tests to cover your new code. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 03:21:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2593