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

I have a error of HTTP/1.1 403 Forbidden. #52

Open
magdalia2016 opened this issue Mar 10, 2023 · 3 comments
Open

I have a error of HTTP/1.1 403 Forbidden. #52

magdalia2016 opened this issue Mar 10, 2023 · 3 comments

Comments

@magdalia2016
Copy link

Hello.
First I apprepriate this project very well.
I used this project for several months, and It did work very well.
But since yesterday, I have a error, and I can't use this ChromeDevtools project anymore.
I attach screenshot here.
This is image url.
image
When I try to send "SendCommand", I m faced on the error of Websocket_Error cause of HTTP/1.1 403 Forbidden.
Really strange...

@EtherealAO
Copy link

this lib seems outdated, try https://github.com/jefersonsv/ChromeRemoteSharp

@magdalia2016
Copy link
Author

this lib seems outdated, try https://github.com/jefersonsv/ChromeRemoteSharp

Thanks, I il check and try your new recommend.

@EtherealAO
Copy link

EtherealAO commented Apr 8, 2023

Hey, there is a new way: add --remote-allow-origins=* to Chrome's launch options and restart. It works like before without changing the library.
I found it here: https://youtrack.jetbrains.com/issue/WEB-59211/Cant-attach-debugger-to-Chrome-Dev-111-Invalid-handshake-response-getStatus-403-Forbidden

Edit:
You can launch chrome like &"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=2229 --enable-logging=stdout and connect, you will get an error like

[30040:29896:0408/182416.107:ERROR:devtools_http_handler.cc(766)] Rejected an incoming WebSocket connection from the ws://127.0.0.1:2229 origin. Use the command line flag --remote-allow-origins=ws://127.0.0.1:2229 to allow connections from this origin or --remote-allow-origins=* to allow all origins.

then set options to --remote-allow-origins=ws://127.0.0.1:2229 for better security(maybe)

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

No branches or pull requests

2 participants