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

Portal CORS UI on System Settings should show a default entry

    Details

      Description

      Solution - 7.3, 7.2

      If the "Portal Cross-Origin Resource Sharing (CORS)" configuration has already been customized in your installation, the setting should show up in System Settings. Otherwise, edit this configuration entry through the UI (System Settings - Security Tools) or create an OSGi .config file like this below:

      LIFERAY_HOME/osgi/configs/com.liferay.portal.remote.cors.configuration.PortalCORSConfiguration-default.config
      configuration.name="Default Portal CORS Configuration"
      enabled=B"true"
      

      .

      Step to reproduce:
      1. Add cors.disable.authorization.context.check=true into portal-ext.properties
      2. Start bundle
      3. Login portal
      4. At System Settings - Security Tools, check that Portal CORS Configuration it's empty
      5. Perform a CORS request and check the returned headers.

      Example:

      curl -D - -H "Origin: http://test-cors.com" -H "Access-Control-Request-Method: GET" http://localhost:8080/api/jsonws/user/get-current-user \
        -u test@liferay.com:test

       

      Expected result: There's no CORS Headers, as CORS it's not enabled.

      Actual result: There are return CORS Headers in response, CORS it's enabled by default but the UI it's not reflecting it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              della.wang Della Wang (Inactive)
              Reporter:
              della.wang Della Wang (Inactive)
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Engineering Assignee:
              Marta Medio
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                19 weeks, 1 day ago

                  Packages

                  Version Package
                  7.2.10 DXP FP11
                  7.2.10.3 DXP SP4
                  7.2.X
                  7.3.10 DXP FP1
                  7.3.10.1 DXP SP1
                  Master