golang Access-Control-Allow-Origin: '*' code example
Example: golang Access-Control-Allow-Origin: '*'
func enableCors(w *http.ResponseWriter) {
(*w).Header().Set("Access-Control-Allow-Origin", "*")
}
func enableCors(w *http.ResponseWriter) {
(*w).Header().Set("Access-Control-Allow-Origin", "*")
}