mirror of
https://github.com/owncast/owncast.git
synced 2024-12-18 15:23:55 +03:00
10 lines
199 B
Go
10 lines
199 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", "*")
|
|
}
|