Skip to content

Conversation

@christoff-linde
Copy link
Owner

@christoff-linde christoff-linde commented Jan 13, 2025

Description

This adds basic CORS functionality. For now, all origins are allowed, but this will be updated and configured to use a env variable later as the project evolves.

This pull request includes several updates and improvements to the project. The most important changes include setting the GIN_MODE to release in the Dockerfile, adding CORS support in the HTTP server, and updating dependencies in the go.mod file.

Dockerfile changes:

  • Set GIN_MODE to release to optimize the performance of the Gin web framework in production.

HTTP server improvements:

  • Added CORS support using the gin-contrib/cors package to handle cross-origin requests.

Dependency updates:

  • Updated multiple dependencies in the go.mod file, including github.com/bytedance/sonic, github.com/gabriel-vasile/mimetype, github.com/go-playground/validator/v10, and others to their latest versions.

Changelist

  • feat(http): add cors package & config
  • chore: vendor packages
  • feat(dockerfile): ensure image is built using golang release mode

@linear
Copy link

linear bot commented Jan 13, 2025

@christoff-linde christoff-linde marked this pull request as draft January 13, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants