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

[YUNIKORN-2967] Cleanup REST response headers #994

Closed
wants to merge 2 commits into from

Conversation

wilfred-s
Copy link
Contributor

@wilfred-s wilfred-s commented Nov 14, 2024

What is this PR for?

Only respond with the allowed methods for the request, not with a general all allowed set. OPTIONS is supported via the generic config. Add a test to make sure a change in router does not break that.

Remove the Access-Control-Allow-Credentials as recommended in the RFC. We also do not use cookies or authentication so not relevant to set.

What type of PR is it?

  • - Improvement

What is the Jira issue?

How should this be tested?

New unit tests added

Only respond with the allowed methods for the request, not with a
general all allowed set. OPTIONS is supported via the generic config.
Add a test to make sure a change in router does not break that.

Remove the Access-Control-Allow-Credentials as recommended in the RFC.
We also do not use cookies or authentication so not relevant to set.
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.32%. Comparing base (d7d1408) to head (ae298f7).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #994      +/-   ##
==========================================
- Coverage   81.33%   81.32%   -0.02%     
==========================================
  Files          97       97              
  Lines       15587    15590       +3     
==========================================
  Hits        12678    12678              
- Misses       2630     2632       +2     
- Partials      279      280       +1     

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

@wilfred-s wilfred-s marked this pull request as ready for review November 14, 2024 03:11
Copy link
Contributor

@craigcondit craigcondit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM.

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