-
Notifications
You must be signed in to change notification settings - Fork 595
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
workaround for El Capitan #195
base: master
Are you sure you want to change the base?
Conversation
+1 |
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.
Hi @dkavraal, thank you for submitting these changes! I left one minor note about a log statement that should be removed, and have one other question before merging: Is there any way we could restrict the cross-origins we allow to prevent any possible security issues?
@@ -209,13 +218,14 @@ class Gateway(PonydCommand): | |||
"""Runs PonyDebugger's gateway""" | |||
__subcommand__ = 'serve' | |||
|
|||
print "Running command-line. ok." |
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.
Could you please remove this log statement?
@@ -94,6 +94,9 @@ class DeviceHandler(tornado.websocket.WebSocketHandler): | |||
page = None | |||
devTools = None | |||
|
|||
def check_origin(self, origin): |
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.
Leaving myself a link to the documentation for the check_origin
method.
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.
Just saw. Sorry, for a while I won't have the chance to check this.
/:404 error, devtools:403 error and Cross-origin-not-allowed error.
Issue#190
Issue#194
Thanks to comments of kenichi and julien gomez