docs: improve contribution documentation (#5540)

This commit is contained in:
Henrique Dias
2025-11-13 17:16:50 +01:00
committed by GitHub
parent 0bab2aba9e
commit 8fcfb502ca
4 changed files with 62 additions and 46 deletions

View File

@@ -1,14 +0,0 @@
//go:build dev
package http
// global headers to append to every response
// cross-origin headers are necessary to be able to
// access them from a different URL during development
var globalHeaders = map[string]string{
"Cache-Control": "no-cache, no-store, must-revalidate",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "*",
"Access-Control-Allow-Methods": "*",
"Access-Control-Allow-Credentials": "true",
}