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

Reduce rpc client pre-flight requests by setting max-age header #8082

Merged
merged 1 commit into from
Feb 1, 2020

Conversation

jstarry
Copy link
Member

@jstarry jstarry commented Feb 1, 2020

Problem

Noticed in the "Break Solana" dapp that the browser was sending many pre-flight options requests. Turns out our RPC http server is not setting the Access-Control-Max-Age header

Summary of Changes

Set max duration (24hr) for cors max age

(verified this works)

Fixes #

@jstarry jstarry added the automerge Merge this Pull Request automatically once CI passes label Feb 1, 2020
@solana-grimes solana-grimes merged commit 69a6d07 into solana-labs:master Feb 1, 2020
@codecov
Copy link

codecov bot commented Feb 1, 2020

Codecov Report

Merging #8082 into master will increase coverage by <.1%.
The diff coverage is 100%.

@@           Coverage Diff            @@
##           master   #8082     +/-   ##
========================================
+ Coverage      82%     82%   +<.1%     
========================================
  Files         249     249             
  Lines       53303   53304      +1     
========================================
+ Hits        43710   43714      +4     
+ Misses       9593    9590      -3

@mvines mvines added the v0.23 label Feb 1, 2020
mergify bot pushed a commit that referenced this pull request Feb 1, 2020
@jstarry jstarry deleted the set-rpc-max-age branch May 13, 2020 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants