Uploaded image for project: 'Atlassian Marketplace'
  1. Atlassian Marketplace
  2. MP-236

Installing a connect app using app descriptor in Confluence cloud that has custom domain fails

    • Minor

      Issue Summary

      This is reproducible on Data Center: (no)

      Installing a connect app using app descriptor in Confluence cloud that has custom domain fails.
      And, we get a CORS error like this.

      Access to XMLHttpRequest at 'https://$SITENAME.atlassian.net/wiki/rest/plugins/1.0/xxxxxxx' (redirected from 'https://$CUSTOMDOMAIN/wiki/rest/plugins/1.0/pending/xxxxxx') from origin 'https://$CUSTOMDOMAIN' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
      

      Steps to Reproduce

      1. Enable / Configure custom domain for Confluence Cloud
      2. Install a connect app using its app descriptor

      Expected Results

      The app should install successfully

      Actual Results

      The installation fails and we see the following error in browser console.

      Access to XMLHttpRequest at 'https://$SITENAME.atlassian.net/wiki/rest/plugins/1.0/xxxxxxx' (redirected from 'https://$CUSTOMDOMAIN/wiki/rest/plugins/1.0/pending/xxxxxx') from origin 'https://$CUSTOMDOMAIN' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [MP-236] Installing a connect app using app descriptor in Confluence cloud that has custom domain fails

            I can confirm it is fixed now. Thank you! 

            Jakub Gladykowski added a comment - I can confirm it is fixed now. Thank you! 

            This issue was fixed and deployed on 12th Sep

            Kuldeep Singh added a comment - This issue was fixed and deployed on 12th Sep

            janis.vanags I believe the broken "getting started" iframe is a slightly different issue (site not redirecting canonical to custom domain when you want it to): see the CAC thread below. It's still unclear exactly to where this was forwarded on the MPAC team or if it was ever logged. https://community.atlassian.com/t5/Confluence-Custom-Domains-EAP/Update-on-known-issues-and-planned-GA-timing/m-p/2722879#M8

            The install-apps-on-custom-domains feature (which is effectively caused by the site redirecting from canonical to custom domain when you don't want it to) was broken in atlassian-connect-express until I fixed it in this PR, with the MPAC upload request being sent to one hostname but the followup URL polling being redirected to a different host and thus losing cookies in the process. Add browser CORS and I can imagine why this problem exists here too. https://bitbucket.org/atlassian/atlassian-connect-express/pull-requests/465/fix-installation-errors-on-sites-with

            Scott Dudley [Cenote] added a comment - janis.vanags I believe the broken "getting started" iframe is a slightly different issue (site not redirecting canonical to custom domain when you want it to): see the CAC thread below. It's still unclear exactly to where this was forwarded on the MPAC team or if it was ever logged. https://community.atlassian.com/t5/Confluence-Custom-Domains-EAP/Update-on-known-issues-and-planned-GA-timing/m-p/2722879#M8 The install-apps-on-custom-domains feature (which is effectively caused by the site redirecting from canonical to custom domain when you don't want it to) was broken in atlassian-connect-express until I fixed it in this PR, with the MPAC upload request being sent to one hostname but the followup URL polling being redirected to a different host and thus losing cookies in the process. Add browser CORS and I can imagine why this problem exists here too. https://bitbucket.org/atlassian/atlassian-connect-express/pull-requests/465/fix-installation-errors-on-sites-with

            I was referred to here from ECOHELP-45457. This presumably is related to broken "Getting started" iframe for all apps installed on Confluence with custom domain. 

            Jānis Vanags added a comment - I was referred to here from ECOHELP-45457 . This presumably is related to broken "Getting started" iframe for all apps installed on Confluence with custom domain. 

            Impact: It brakes our CI when developing Confluence apps

            Jakub Gladykowski added a comment - Impact: It brakes our CI when developing Confluence apps

              e6a780dea54b Harsh Dhaka
              2ed764d1efd7 Nashid Farhad
              Affected customers:
              14 This affects my team
              Watchers:
              18 Start watching this issue

                Created:
                Updated:
                Resolved: