cors update

This commit is contained in:
darius 2024-06-25 01:46:54 +02:00
parent e7814ef14f
commit 0aaace70b7

View File

@ -27,7 +27,7 @@ func main() {
go http.ListenAndServe(":4000", cors.AllowAll().Handler(webMux))
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{
http.MethodHead,
http.MethodGet,