Embedding Issues

Some modern browser versions are now disabling third-party cookies by default. Like many other web services, GoodData relies on these cookies to authenticate users when its offerings are embedded in another web page. You may need to enable them in your browser for access.

Contents:

Embedding in Safari

Safari blocks all third-party cookies by default. Due to the GoodData implementation, Safari views embedded GoodData dashboards as third-party cookies.

If you have issues with embedded dashboards in Safari, navigate to the dedicated resource from your site. This dedicated resource sets a special cookie named GDCCookiesFix with one year validity from the GoodData domain and redirects calls back to your site based on the Referer HTTP header.

Ensure that the dedicated resource is called only once, or the access will result in a loop.

In the example below, the dedicated resource is https://GoodData_URL/cookiesFix.html. Remember to use the required URL address for this.


Example:

<!doctype html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="copyright" content="Copyright © 2008 - 2019 GoodData Corporation. All rights reserved.">
	</head>
	<body>
		<iframe frameborder="0" src="EMBEDDED_DASHBOARD_LINK" width="100%" height="808px" allowTransparency="false"></iframe>
		<script>
		var createCookie = function(name, value, days) {
			var expires, date;
			date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			expires = "; expires="+date.toGMTString();
			document.cookie = name+"="+value+expires+"; path=/";
		};

		var safariFixCookie = "safari_fix";
		var is_safari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); // safari detection
		if (is_safari) {
			if (document.cookie.indexOf(safariFixCookie) == -1) {
				createCookie(safariFixCookie, 'fixed', 365);
				window.location.replace("https://GOODDATA_URL/cookiesFix.html");
				}
			}
		</script>
	</body>
</html>

If this does not help, explicitly enable third-party cookies in your browser.

Enabling Cookies in Your Browser

Explicitly enable third-party cookies in your browser. For specific instructions in enabling cookies, see user documentation for your browser. Instructions may differ depending on the version of the browser and your operating system.

For more information, see Known Issue: Blocking Cookies May Make Embedded GoodData Inaccessible.