mirror of
https://github.com/Luzifer/local-functions.git
synced 2024-11-09 16:50:03 +00:00
Add CORS headers
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
fe3a347c07
commit
f2491f24e0
1 changed files with 3 additions and 0 deletions
3
main.go
3
main.go
|
@ -86,5 +86,8 @@ func handleScriptCall(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
w.Header().Set("Access-Control-Allow-Method", "*")
|
||||
|
||||
io.Copy(w, stdout)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue