Closed trajan0x closed 1 month ago
[!CAUTION]
Review failed
The pull request is closed.
The changes in this pull request primarily focus on enhancing the configuration of the Gin server's CORS handling in core/ginhelper/server.go
and modifying the Start
function in services/omnirpc/cmd/cmd.go
. A new global variable CorsEnabled
has been introduced to conditionally apply CORS middleware, allowing for more flexible server configuration. In cmd.go
, the application description has been updated to include version information, and the command list remains intact with no changes to error handling.
File Path | Change Summary |
---|---|
core/ginhelper/server.go | Added global variable CorsEnabled to control CORS middleware application; modified middleware application based on CorsEnabled . Included TODO for future improvements. |
services/omnirpc/cmd/cmd.go | Updated Start function to initialize app variable with name and version; corrected app description formatting. Command list preserved, error handling unchanged. |
π In the garden where code does bloom,
CORS now dances, dispelling gloom.
WithCorsEnabled
, we flex and sway,
Middleware changes brighten the day.
Versioned whispers incmd.go
sing,
A rabbit's joy for each little thing! πΌ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Latest commit: |
399534a
|
Status: | β Deploy successful! |
Preview URL: | https://4215a0e8.sanguine-fe.pages.dev |
Branch Preview URL: | https://fix-cors-optional.sanguine-fe.pages.dev |
Attention: Patch coverage is 90.90909%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 33.24226%. Comparing base (
a813e05
) to head (399534a
). Report is 1 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
services/omnirpc/cmd/cmd.go | 0.00000% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description A clear and concise description of the features you're adding in this pull request.
Additional context Add any other context about the problem you're solving.
Metadata
Summary by CodeRabbit
New Features
Bug Fixes