Commit 48a14cb4 by silvestre-abruzzo Committed by Torkel Ödegaard

Use correct domain in render.js (#6813)

Phantomjs is always rendering login page because domain is not considered. According to http://phantomjs.org/api/webpage/method/add-cookie.html a correct domain must be passed. Probably this change is now necessary due to https://github.com/grafana/grafana/issues/6660
parent 4a2a935c
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
phantom.addCookie({ phantom.addCookie({
'name': 'renderKey', 'name': 'renderKey',
'value': params.renderKey, 'value': params.renderKey,
'domain': 'localhost', 'domain': params.domain,
}); });
page.viewportSize = { page.viewportSize = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment