Uploaded image for project: 'Atlassian Ecosystem'
  1. Atlassian Ecosystem
  2. ECO-17

Show user-friendly message when user blocks third-party cookies

    XMLWordPrintable

Details

    • 2
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Problem Definition

      Questions users cannot post a question if third-party cookies are blocked on their browsers with the following error:

      Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document
      

       

      This happens if user changes their browser setting to block third-party cookies.
      Since Question is implemented as add-on and its resources is hosted on the different domain from Confluence Cloud, users should enable third-party cookies.

      However, the problem is Questions users cannot realise they need to change the setting.

      Suggested Solution

      Detect if localStorage is available and show the friendly notice not to block third-party cookies.

      if (typeof window.localStorage !== 'undefined') {
          // SETUP SESSION, AUHT, LOCALE, SETTINGS ETC
      } else {
          // PROVIDE FEEDBACK TO THE USER
      }
      

      Workaround

      • For a Chrome user: go to chrome://settings/content/cookies (Settings > Content settings > Cookies), and make sure to enable "Allow local data to be set (recommended)" and disable "Block third-party cookies"

      Related Documents

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kyamamoto@atlassian.com K. Yamamoto
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: