Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-99559

Google Docs Creation blocked by CORS policy

    Details

      Description

       

      Steps to reproduce:

      1. Insert valid credentials on Control Panel > Configuration > System Settings > D&M > Google Drive
      2. Create a new Google Drive document on Content Data > D&M > plus blue-button > Google Doc

      Expected Results: The page redirects to a login page if not previously logged or a new document if logged.
      Actual Results: Page was frozen and error on console

       

      // Access to fetch at 'https://accounts.google.com/o/oauth2/auth?client_id=74...t.com&redirect_uri=http://localhost:8080/o/document_library/google/oauth2&response_type=code&scope=https://www.googleapis.com/auth/drive.file&state=rzwHJ&prompt=select_account' (redirected from 'http://localhost:8080/group/guest/~/control_panel/manage?p_p_id=com_liferay_document_library_...9') from origin 'http://localhost:8080' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                john.co John Co
                Reporter:
                alicia.garcia Alicia Garcia
                Participants of an Issue:
                Recent user:
                Jason Pince
                Engineering Assignee:
                Julien Castelain
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  9 weeks, 3 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP2
                  7.2.10.1 DXP SP1
                  7.2.X
                  7.2.1 CE GA2
                  Master