forgejo-release-proxy/internal/webservice/cors.go

9 lines
158 B
Go
Raw Normal View History

2024-08-03 16:29:19 +02:00
package webservice
import "net/http"
// sets CORS header
func enableCors(w *http.ResponseWriter) {
(*w).Header().Set("Access-Control-Allow-Origin", "*")
}