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

properly encode vapid keys #16698

Closed
wants to merge 1 commit into from

Conversation

schlawg
Copy link
Collaborator

@schlawg schlawg commented Dec 29, 2024

applicationServerKey argument to PushManager.subscribe must be Base64URL encoded (a few character substitutions and minus padding)

I have absolutely no idea why all three major browsers just started complaining about this now because the server code doesn't seem to have changed, but here we are.

applicationServerKey argument to PushManager.subscribe should be Base64URL encoded (without padding)
@schlawg schlawg requested a review from niklasf December 29, 2024 22:26
@ornicar
Copy link
Collaborator

ornicar commented Dec 29, 2024

This seems relevant.

@niklasf did I revert that too early? There was a server deploy in between

@schlawg
Copy link
Collaborator Author

schlawg commented Dec 30, 2024

Ah. So https://github.com/lichess-org/lila-push/blob/main/README.md changed and we don't want to fix up vapid externally anymore. got it.

@niklasf
Copy link
Member

niklasf commented Dec 30, 2024

yep. i wouldn't mind the server-side conversion, but we can also just edit the config (which i had done for prod).

@ornicar ornicar closed this Dec 30, 2024
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.

3 participants