3 Replies Latest reply on Apr 1, 2016 11:02 AM by Robin Cottiss

    Odd issue with Embedding Dashboard, viewing on the Computer vs iPad

    Bradley Love

      We are testing out some embed code using trusted tickets and we are running into an issue where it works fine in Chrome, Firefox and Edge, but on an iPad/iPhone it looks like the trusted ticket is not getting passed correctly.  So I have been combing through the httpd logs to see if I can figure out what is going on, here is what I see (note I swapped out our address server with <host-url> in the below):

       

      From desktop browser (Firefox, where it works):

      <tableau server IP address> - - 2016-03-31 20:29:53.383 Coordinated Universal Time 80 "POST /trusted HTTP/1.1" "-" 200 24 "45" 46875 Vv2IwawfJ1MAADpU7MsAAAHW

      <browser IP address> - - 2016-03-31 20:29:53.773 Coordinated Universal Time 80 "GET /javascripts/api/viz_v1.js HTTP/1.1" "-" 200 4569 "-" 0 Vv2IwawfJ1MAADpU7MwAAAHW

      <browser IP address> - - 2016-03-31 20:29:54.195 Coordinated Universal Time 80 "GET /images/30x30REV.gif HTTP/1.1" "-" 304 - "-" 0 Vv2IwqwfJ1MAADpU7M4AAABr

       

      <browser IP address> - - 2016-03-31 20:29:54.195 Coordinated Universal Time 80 "GET /trusted/L55pg0uR-HTeam36VthxaMfB/views/NGSDashboardTrends/Tabs?:embed=y&:showVizHome=no&:host_url=<host-url>&:tabs=no&:showShareOptions=false&:toolbar=top&:display_spinner=no&:loadOrderID=0 HTTP/1.1" "-" 302 - "-" 31252 Vv2IwqwfJ1MAADpU7M0AAAHW

       

      <browser IP address> - - 2016-03-31 20:29:54.320 Coordinated Universal Time 80 "GET /views/NGSDashboardTrends/Tabs?:embed=y&:showVizHome=no&:host_url=<host-url>&:tabs=no&:showShareOptions=false&:toolbar=top&:display_spinner=no&:loadOrderID=0 HTTP/1.1" "-" 200 19723 "-" 296873 Vv2IwqwfJ1MAADpU7M8AAAHW

       

      <browser IP address> - - 2016-03-31 20:29:54.976 Coordinated Universal Time 80 "POST /vizql/w/NGSDashboardTrends/v/Tabs/bootstrapSession/sessions/2C72892A5A7647FF81E843A7D64E0085-0:0 HTTP/1.1" "-" 200 25077 "684" 1281235 Vv2IwqwfJ1MAADpU7NAAAAHW

      <browser IP address> - - 2016-03-31 20:29:57.898 Coordinated Universal Time 80 "POST /vizportal/api/web/v1/getSessionInfo HTTP/1.1" "-" 200 866 "41" 46879 Vv2IxawfJ1MAADpU7NMAAABr

      <browser IP address> - - 2016-03-31 20:29:57.898 Coordinated Universal Time 80 "GET /vizql/w/NGSDashboardTrends/v/Tabs/get_customized_views/sessions/2C72892A5A7647FF81E843A7D64E0085-0:0?sheet_id=Tabs HTTP/1.1" "-" 200 85 "-" 156254 Vv2IxawfJ1MAADpU7NIAAAHW

       

      From iPad browser (Safari, where it does not work):

       

      <tableau server IP address> - - 2016-03-31 20:35:43.785 Coordinated Universal Time 80 "POST /trusted HTTP/1.1" "-" 200 24 "45" 15627 Vv2KH6wfJ1MAADpU7RoAAAIQ

      <browser IP address> - - 2016-03-31 20:35:44.034 Coordinated Universal Time 80 "GET /javascripts/api/viz_v1.js HTTP/1.1" "-" 304 - "-" 0 Vv2KIKwfJ1MAADpU7RsAAAIQ

      <browser IP address> - - 2016-03-31 20:35:44.253 Coordinated Universal Time 80 "GET /images/30x30REV.gif HTTP/1.1" "-" 200 2457 "-" 15627 Vv2KIKwfJ1MAADpU7R0AAAIQ

       

      <browser IP address> - - 2016-03-31 20:35:44.300 Coordinated Universal Time 80 "GET /trusted/pSn0xOoajCCU6Mxstj-LVrn1/views/NGSDashboardTrends/Tabs?:embed=y&:showVizHome=no&:host_url=<host-url>&:tabs=no&:showShareOptions=false&:toolbar=top&:display_spinner=no&:loadOrderID=0 HTTP/1.1" "-" 302 - "-" 31255 Vv2KIKwfJ1MAADpU7R4AAAH3

       

      <browser IP address> - - 2016-03-31 20:35:44.347 Coordinated Universal Time 80 "GET /views/NGSDashboardTrends/Tabs?:embed=y&:showVizHome=no&:host_url=<host-url>&:tabs=no&:showShareOptions=false&:toolbar=top&:display_spinner=no&:loadOrderID=0 HTTP/1.1" "-" 302 - "-" 15623 Vv2KIKwfJ1MAADpU7R8AAAIQ

       

      <browser IP address> - - 2016-03-31 20:35:44.394 Coordinated Universal Time 80 "GET /vizportal/api/web/v1/auth/signin?path=%2Fviews%2FNGSDashboardTrends%2FTabs%3F%3Aembed%3Dy%26%3AshowVizHome%3Dno%26%3Ahost_url%3D<host-url>%26%3Atabs%3Dno%26%3AshowShareOptions%3Dfalse%26%3Atoolbar%3Dtop%26%3Adisplay_spinner%3Dno%26%3AloadOrderID%3D0&siteUrlName= HTTP/1.1" "-" 302 - "-" 0 Vv2KIKwfJ1MAADpU7SAAAAIQ

      <browser IP address> - - 2016-03-31 20:35:44.425 Coordinated Universal Time 80 "GET /en/embeddedAuth.html?path=%2Fviews%2FNGSDashboardTrends%2FTabs%3F%3Aembed%3Dy%26%3AshowVizHome%3Dno%26%3Ahost_url%3D<host-url>%26%3Atabs%3Dno%26%3AshowShareOptions%3Dfalse%26%3Atoolbar%3Dtop%26%3Adisplay_spinner%3Dno%26%3AloadOrderID%3D0&siteUrlName=&siteLuid=&authSettings=DEFAULT HTTP/1.1" "-" 200 5754 "-" 0 Vv2KIKwfJ1MAADpU7SEAAAIQ

      <browser IP address> - - 2016-03-31 20:35:44.441 Coordinated Universal Time 80 "GET /console-polyfill.js?ea4uwnvfpgncow29 HTTP/1.1" "-" 304 - "-" 0 Vv2KIKwfJ1MAADpU7SIAAAH3

      <browser IP address> - - 2016-03-31 20:35:44.441 Coordinated Universal Time 80 "GET /js.cookie.js?ea4uwnvfpgncow29 HTTP/1.1" "-" 304 - "-" 0 Vv2KIKwfJ1MAADpU7SMAAAIQ

      <browser IP address> - - 2016-03-31 20:35:44.472 Coordinated Universal Time 80 "GET /underscore.js?ea4uwnvfpgncow29 HTTP/1.1" "-" 304 - "-" 0 Vv2KIKwfJ1MAADpU7SQAAAHt

      <browser IP address> - - 2016-03-31 20:35:44.472 Coordinated Universal Time 80 "GET /jquery.js?ea4uwnvfpgncow29 HTTP/1.1" "-" 304 - "-" 0 Vv2KIKwfJ1MAADpU7SUAAAIl

      <browser IP address> - - 2016-03-31 20:35:44.534 Coordinated Universal Time 80 "POST /vizportal/api/web/v1/getServerSettingsUnauthenticated HTTP/1.1" "-" 200 281 "45" 0 Vv2KIKwfJ1MAADpU7SYAAAIQ

       

      When I look though for a difference I only notice after the first five lines are very similar, but then by the sixth line it is going all wrong.  Does any one have any idea about this? The sixth line for the iPAd is basically pulling up the log in page, where this should not be becuase it is a trusted ticket.  Note that the first line is from the website where the dashboard is embedded and it the "trusted site" on the server,

        • 2. Re: Odd issue with Embedding Dashboard, viewing on the Computer vs iPad
          Bradley Love

          Hey Jeff,

           

          Thank you for the answer...  Just in case anyone else runs across this issue here is what I needed to do to get this running for an iPad and iPhone iOS 9.3:

           

          1) Change the settings for Safari browser by going to Settings > Safari > Block Cookies and change the setting to Always Allow (note that my default was Allow from Websites I Visit)

          2) I had to reboot my iPad for these settings to take effect.  Note that I tried to close down the browser and open the website in another tab and neither of these seemed to do the trick, rebooting my iPad/iPhone did it

          3) Everything works now...

           

          Hey Tableau - I am guessing that the default setting "Allow from Websites I Visit" setting didn't work because the cookie is being placed by the Tableau Server, where the user is visiting my website... perhaps this is an opportunity for Tableau to make the cookie from the website visiting vs the Tableau server and make this functionality compatible with default Apple/Safari settings...  Not sure it is possible, but it would be great to be compatible with Apple by default....

          • 3. Re: Odd issue with Embedding Dashboard, viewing on the Computer vs iPad
            Robin Cottiss

            Hello Bradley, Thanks for posting this.

             

            This occurs due to the fact that the embedded content does not come from your site. Safari's Always Allow is enabling third party cookies, and by default is off on mobile devices. It is not possible for the embedded site to create cookies for the embedding site. This would defeat the objective of isolating cookies to their creating site. Any enhancements would need to come from the browser/device side. For example it would be nice to control this setting at a site level. I think some other browsers have this level of control.

             

            Robin