browserstack / docker-browserstack-local

Docker official Image packaging for Browserstack Local Binary
12 stars 4 forks source link

Can I access binary console dashboard from other machine than my host? #7

Open Kohagan91 opened 3 years ago

Kohagan91 commented 3 years ago

Hello,

First of all, thanks for this release in container base.

I'm running this container on top of a docker swarm system.

So I want to access the binary console dashboard from outside of the worker that runs this service.

I can access the dashboard but it doesn't load correctly due to HTTP request address: localhost:45454 instead of domainName:45454, same behavior for WebSocket on port 45954.

image

I don't find any parameter to launch it on another domain name, other than localhost.

Do you have a solution to this issue?

shawnlobo96 commented 3 years ago

@Kohagan91 ​ The behavior you see is due to CORS since the request is originating from a hostname other than localhost. ​ ​Currently, you will only be able to access the dashboard over localhost due to this restriction.

This has been added as a feature request.

Kohagan91 commented 3 years ago

Just for your information, I think you have "just" to change the CORS and link inside the /static/js/constants/api.js file with the same link.

Do the Browserstack local Binaries is an open-source project that I can help you via PR?

Thanks!