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

Real-time Map is not working when using HTTPS #3856

Closed
halfdan opened this issue Mar 23, 2013 · 3 comments
Closed

Real-time Map is not working when using HTTPS #3856

halfdan opened this issue Mar 23, 2013 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@halfdan
Copy link
Member

halfdan commented Mar 23, 2013

I just noticed this on two installations:

The page at https://piwik.example.eu/index.php?module=CoreHome&action=index&date=20UserCountryMap&action=realtimeWorldMap&date=2013-03-23&period=day&idSite=1 displayed insecure content from http://piwik.example.eu/plugins/UserCountryMap/svg/world.svg.
 index.php:5
XMLHttpRequest cannot load http://piwik.example.eu/plugins/UserCountryMap/svg/world.svg. Origin https://piwik.example.eu is not allowed by Access-Control-Allow-Origin. index.php:1
Object {readyState: 0, setRequestHeader: function, getAllResponseHeaders: function, getResponseHeader: function, overrideMimeType: function}
 "error" "" 

Real-time map is requesting the world.svg using http instead of https.

@halfdan
Copy link
Member Author

halfdan commented Mar 23, 2013

Short update: This might not be related to the real-time map at all.

I just noticed that core/View.php doesn't set the proper URL according to the scheme used. I am getting a http-URL instead of https when accessing Piwik over https (shown in Javascript piwik.piwik_url).

@mattab
Copy link
Member

mattab commented Mar 24, 2013

Seems to be working on https://demo.piwik.org ?

@halfdan
Copy link
Member Author

halfdan commented Mar 24, 2013

This seems to be caused by a common nginx misconfiguration:

In fastcgi_params add:

fastcgi_param HTTPS $https;

@halfdan halfdan added this to the 1.12 - The Great 1.x Backlog milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants