Skip to content

Commit

Permalink
Merge pull request #34 from Aditya-Chowdhary/master
Browse files Browse the repository at this point in the history
fix: cors error
  • Loading branch information
Aditya-Chowdhary authored Jan 13, 2025
2 parents 567eb82 + ae8b2bb commit f20321a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions hex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions hexathon-api/api/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: "*",
},
))

Expand Down

0 comments on commit f20321a

Please sign in to comment.