-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow GET requests re CORS #3383
Conversation
WalkthroughThe changes introduce a new middleware function to the Express application for handling Cross-Origin Resource Sharing (CORS). This middleware sets the necessary headers for incoming requests and responds with a 200 status for Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant CORS Middleware
participant Logging Middleware
participant Request Handler
Client->>CORS Middleware: Send Request
CORS Middleware-->>Client: Set CORS Headers
alt OPTIONS Request
CORS Middleware-->>Client: Respond with 200
else Other Request
CORS Middleware->>Logging Middleware: Call next()
Logging Middleware->>Request Handler: Process Request
Request Handler-->>Logging Middleware: Send Response
Logging Middleware-->>Client: Return Response
end
Poem
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3383 +/- ##
===================================================
+ Coverage 33.20876% 34.22600% +1.01724%
===================================================
Files 544 524 -20
Lines 34786 33495 -1291
Branches 82 82
===================================================
- Hits 11552 11464 -88
+ Misses 22216 21016 -1200
+ Partials 1018 1015 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Deploying sanguine-fe with
|
Latest commit: |
4a27a0a
|
Status: | ✅ Deploy successful! |
Preview URL: | https://57179d01.sanguine-fe.pages.dev |
Branch Preview URL: | https://rest-api-cors.sanguine-fe.pages.dev |
dc287f3
to
4a27a0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary by CodeRabbit