cors update
This commit is contained in:
parent
e7814ef14f
commit
0aaace70b7
2
main.go
2
main.go
@ -27,7 +27,7 @@ func main() {
|
|||||||
go http.ListenAndServe(":4000", cors.AllowAll().Handler(webMux))
|
go http.ListenAndServe(":4000", cors.AllowAll().Handler(webMux))
|
||||||
|
|
||||||
c := cors.New(cors.Options{
|
c := cors.New(cors.Options{
|
||||||
AllowedOrigins: []string{"http://localhost:4000", "https://*.dariusklein.nl"},
|
AllowedOrigins: []string{"http://localhost:4000", "https://*.dariusklein.nl", "https://*.portfolio.dariusklein.nl", "https://dariusklein.nl"},
|
||||||
AllowedMethods: []string{
|
AllowedMethods: []string{
|
||||||
http.MethodHead,
|
http.MethodHead,
|
||||||
http.MethodGet,
|
http.MethodGet,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user