diff --git a/hex.sh b/hex.sh index 1fb1b88..6645ae7 100755 --- a/hex.sh +++ b/hex.sh @@ -2,13 +2,13 @@ # Hexathon # Handy set of commands to run to get a new server up and running -if [ "$1" = "prod" ]; then +if [ "$1" = "local" ]; then shift # Discard the first argument - environment="production" - file="docker-compose-prod.yaml" -else environment="local" file="docker-compose-local.yaml" +else + environment="production" + file="docker-compose-prod.yaml" fi command=$1 diff --git a/hexathon-api/api/initialize.go b/hexathon-api/api/initialize.go index 93ede0e..7f18092 100644 --- a/hexathon-api/api/initialize.go +++ b/hexathon-api/api/initialize.go @@ -14,10 +14,10 @@ func NewWebApi() *fiber.App { app.Use(logger.New()) app.Use(cors.New( cors.Config{ - AllowOrigins: "*", - AllowHeaders: "*", - AllowCredentials: true, - AllowMethods: "*", + AllowOrigins: "*", + AllowHeaders: "*", + // AllowCredentials: true, + AllowMethods: "*", }, ))