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

fix websockets with webkit #153

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders commented Aug 3, 2020

Closes #152

Since Google forked WebKit this primarily affects Safari.

Requirements check-list

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Does not need tests (why?).
  • Appropriate change log entry included.
  • No documentation update required.
  • No dependency changes.

@oliver-sanders oliver-sanders added the bug Something isn't working label Aug 3, 2020
@oliver-sanders oliver-sanders added this to the 0.3 milestone Aug 3, 2020
@oliver-sanders oliver-sanders self-assigned this Aug 3, 2020
@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2020

Codecov Report

Merging #153 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #153   +/-   ##
=======================================
  Coverage   50.75%   50.75%           
=======================================
  Files           6        6           
  Lines         396      396           
  Branches       64       64           
=======================================
  Hits          201      201           
  Misses        192      192           
  Partials        3        3           
Impacted Files Coverage Δ
cylc/uiserver/handlers.py 77.10% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 252a1a7...08c8b3c. Read the comment docs.

@@ -34,7 +34,8 @@ def set_default_headers(self) -> None:
self.set_header("Access-Control-Allow-Origin", "*")
self.set_header("Access-Control-Allow-Headers", "x-requested-with")
self.set_header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS')
self.set_header('Server', '')
# prevent server fingerprinting
self.clear_header('Server')
Copy link
Member

Choose a reason for hiding this comment

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

#TodayILearned! 🎉

@kinow
Copy link
Member

kinow commented Aug 3, 2020

Tested locally, and works better than previous change. The server header is simply not present.

image

One review should be enough.

@kinow kinow merged commit 7e1f6df into cylc:master Aug 3, 2020
@kinow
Copy link
Member

kinow commented Aug 3, 2020

Thanks @oliver-sanders ! (and sorry for creating the issue 😬 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

websocket connections fail on webkit browsers
3 participants