-
Notifications
You must be signed in to change notification settings - Fork 148
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
Whitelist webpush endpoints #182
Conversation
56f6114
to
1f55017
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall.
Does it make sense to include some info on Google/Microsoft/Mozilla here so people know what a reasonable value is? |
ed3b438
to
329f3aa
Compare
Added this to the docs 👍 |
How would I fix this error?:
|
d8c69b0
to
a8765c1
Compare
When you define self.foo = None # type: Optional[List[str]]
if blah:
self.foo = list(...) You'll also need a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I think my other comment will fix the mypy issue.
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
through an optional
allowed_endpoints
configuration keyI added support for globs because some browser vendor endpoints seem to contain sharding identifiers in the subdomain.