Skip to content

Commit

Permalink
Merge pull request #58 from youngeek-0410/fix/cors
Browse files Browse the repository at this point in the history
ゲームスタートのレスポンスでCORSを許容してなかったので修正
  • Loading branch information
GoRuGoo authored Dec 21, 2023
2 parents 09ea364 + 4c5f9bc commit f9e2f9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lambda/room/{room_id}/start/POST/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ func createErrorResponseWithStatus(statusCode int, responseMessage string) (even
return events.APIGatewayProxyResponse{
Body: responseMessage,
StatusCode: statusCode,
Headers: map[string]string{"Content-Type": "application/json", "Access-Control-Allow-Origin": "*"},
}, nil
}

Expand Down

0 comments on commit f9e2f9f

Please sign in to comment.