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

local/offline hosted region maps no longer working on firefox #84

Closed
mmguero opened this issue Nov 20, 2019 · 4 comments
Closed

local/offline hosted region maps no longer working on firefox #84

mmguero opened this issue Nov 20, 2019 · 4 comments

Comments

@mmguero
Copy link
Collaborator

mmguero commented Nov 20, 2019

These maps:

Region Maps
Source - Originator Bytes | Destination - Responder Bytes
Source - Sum of Total Bytes | Destination - Sum of Total Bytes
Source - Top Connection Duration | Destination - Top Connection Duration

listed on the lower half of the maps dialog on the connections dashboard are no longer working on Mozilla firefox. They return:

Error downloading vector data
Cannot download World (offline) file. Please ensure the CORS configuration of the server permits requests from the Kibana application on this host.

However, on Chromium it works fine. It's not an issue with the server. In the kibana docker container output we see (for Chromium, at least):

kibana_1         | 2019-11-20 17:55:24,474 INFO spawned: 'maps' with pid 4265
kibana_1         | 2019-11-20 17:55:24,475 INFO success: maps entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
kibana_1         | Starting up http-server, serving /opt/maps
kibana_1         | Available on:
kibana_1         |   http://127.0.0.1:28991
kibana_1         |   http://192.168.32.10:28991
kibana_1         | Hit CTRL-C to stop the server
...
kibana_1         | [Wed Nov 20 2019 17:55:35 GMT+0000 (UTC)] "OPTIONS /world.geojson" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"

For Firefox we don't see the request at all. Some kind of browser protection is going on.

@mmguero mmguero added bug Something isn't working kibana Relating to Malcolm's Kibana interface labels Nov 20, 2019
@mmguero
Copy link
Collaborator Author

mmguero commented Nov 20, 2019

Firefox's web console says:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:28991/world.geojson. (Reason: CORS request did not succeed).

@mmguero
Copy link
Collaborator Author

mmguero commented Nov 20, 2019

FWIW the command running on the "server" is

node /usr/bin/http-server /opt/maps --cors=* -p 28991

@mmguero
Copy link
Collaborator Author

mmguero commented Nov 20, 2019

See this article: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSDidNotSucceed

Most likely:

As of Firefox 68, https pages are not permitted to access http://localhost, although this may be changed by Bug 1488740.

@mmguero
Copy link
Collaborator Author

mmguero commented Jan 9, 2020

This is working again for me 🤷

@mmguero mmguero closed this as completed Jan 9, 2020
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

1 participant