8 lines
158 B
Go
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", "*")
|
|
}
|