Products | Versions |
---|---|
Spotfire Web Player | All |
Spotfire Consumer | All |
Spotfire Business Author | All |
General Symptoms
The Spotfire JavaScript Mashup API stops working. There will be a blank page/visualization or possibly a login prompt where the visualization is supposed to be. This is due to cookies not being sent to the server as they have been earlier. This increased security is first introduce in Chrome version 80, released February 2020, but it is expected for other browsers to follow.
Specific symptoms
Below are examples of errors generated in the developer console of the browser, not normally seen by the user:
If TIBCO Spotfire JavaScript (JS) API version 7.14+ is used, the following error is generated in the browsers console, and nothing is shown if not handled in the Portal JS code.
"A cookie associated with a cross-site resource at <URL> was set without the `SameSite` attribute. It has been blocked, as Chrome now only delivers cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at <URL> and <URL>.
Status not OK. ERROR: Third party cookies must be allowed for domain 'https://spotfire-next.cloud.tibco.com'."
If TIBCO Spotfire JavaScript API version 7.5, used in 7.11, you get the following error:
"A cookie associated with a cross-site resource at https://spotfireserver.yourdomain.com/ was set without the `SameSite` attribute. It has been blocked, as Chrome now only delivers cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032."
YourHtmlPage.html:19 Uncaught ReferenceError: spotfire is not defined
at YourHtmlPage.html:19
Why:
1. Chrome version 80 will be released February 2020. Then they will change 2 flags that increase the security. It is possible to revert those changes manually on each browser.*
2. If the Portal/Mashup page uses http or https does not matter. The result/limitations are similar.
3. If the Spotfire server called from Mashup runs on http, they Spotfire server needs to be on the same top level domain as the Portal page.
4. If the Spotfire server uses https and the Portal page use the same top-level domain (.company.com) they are not affected at all.
5. If the Spotfire server runs https and the Portal page has another top level domain, then modifications needs to be done on the Spotfire server. Possible also the Spotfire server needs be patched.
* Under Chrome://flags they will change the following two flags to enable, 'Samesite by default cookies' and 'Cookies without Samesite must be secure'. Change this back to disable to remove the added security (THIS IS NOT SOMETHING WE RECOMMEND).