mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 13:50:06 +03:00
10 lines
195 B
Go
10 lines
195 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", "*")
|
|
}
|