diff --git a/main.go b/main.go index 624dbb2..53fea31 100644 --- a/main.go +++ b/main.go @@ -113,11 +113,15 @@ func saveImageNames() { func serveAPI() { // Create a new CORS handler c := cors.New(cors.Options{ - AllowedOrigins: []string{"http://localhost:4321"}, // Your frontend origin + AllowedOrigins: []string{ + "http://localhost:4321", + "https://siliconpin.cs1.hz.siliconpin.com", + "https://siliconpin.com", + }, AllowedMethods: []string{"GET", "POST", "OPTIONS"}, AllowedHeaders: []string{"Content-Type"}, AllowCredentials: true, - Debug: true, // Remove in production + // Debug: true, // Remove in production }) // Create a new mux router