forgejo-release-proxy/internal/webservice/cors.go
2024-08-03 16:29:19 +02:00

8 lines
158 B
Go

package webservice
import "net/http"
// sets CORS header
func enableCors(w *http.ResponseWriter) {
(*w).Header().Set("Access-Control-Allow-Origin", "*")
}