Skip to content
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

send CORS headers for OPTIONS requests #1117

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Conversation

mpldr
Copy link
Contributor

@mpldr mpldr commented Nov 27, 2023

Currently CORS validation fails, due to OPTIONS Requests having a 405 response code. This commit corrects this by sending the proper CORS headers and a success status code on an OPTIONS request.

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (78b0432) 72.38% compared to head (cada959) 72.39%.

❗ Current head cada959 differs from pull request most recent head 2012d2a. Consider uploading reports for the commit 2012d2a to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1117      +/-   ##
==========================================
+ Coverage   72.38%   72.39%   +0.01%     
==========================================
  Files         187      187              
  Lines       14959    14959              
==========================================
+ Hits        10828    10830       +2     
+ Misses       3598     3597       -1     
+ Partials      533      532       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tdakkota
Copy link
Member

tdakkota commented Nov 27, 2023

Please re-generate code with make generate examples command as contributing guide suggests.

Everything else is LGTM. Thanks!

Currently CORS validation fails, due to OPTIONS Requests having a 405
response code. This commit corrects this by sending the proper CORS
headers and a success status code on an OPTIONS request.
@mpldr
Copy link
Contributor Author

mpldr commented Nov 27, 2023

Should GitHub complete "processing updates" within this decade, this should be resolved :)
2023-11-27-20-54-53

@tdakkota tdakkota merged commit a6b03d6 into ogen-go:main Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants