mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 03:29:03 +03:00
11 lines
197 B
Go
11 lines
197 B
Go
|
package middleware
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
//EnableCors enables the cors header on the responses
|
||
|
func EnableCors(w *http.ResponseWriter) {
|
||
|
(*w).Header().Set("Access-Control-Allow-Origin", "*")
|
||
|
}
|