mirror of
https://github.com/aljazceru/khatru.git
synced 2026-02-22 21:24:23 +01:00
10 lines
259 B
Go
10 lines
259 B
Go
package blossom
|
|
|
|
import "net/http"
|
|
|
|
func setCors(w http.ResponseWriter) {
|
|
w.Header().Set("Access-Control-Allow-Origin", "*")
|
|
w.Header().Set("Access-Control-Allow-Headers", "Authorization")
|
|
w.Header().Set("Access-Control-Allow-Methods", "GET PUT DELETE")
|
|
}
|