Uploaded image for project: 'Nuxeo Documentation'
  1. Nuxeo Documentation
  2. NXDOC-1643

PDF preview is broken when following the AWS cloudfront configuration documentation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 9.10
    • Fix Version/s: None
    • Component/s: Addons

      Description

      The documentation at https://doc.nuxeo.com/nxdoc/amazon-cloudfront-distribution/ says to set

      Query String Forwarding and Caching: Forward all, cache based on whitelist
      response-content-type
      response-content-disposition

      However the PDF preview in webui does not work with this setting

      Getting an error like

      Failed to load https://d3acrkg8hin8s3.cloudfront.net/7a020c0a5af55f630db025fbf0577288?response-content-type=application%2Fpdf&response-content-disposition=attachment%3Bfilename*%3DUTF-8%27%27yoks17_6_p0002to0009_MacCS6.pdf&Expires=1534288588&Signature=AVM5gBsZ-ibMkMQ38t~v4BnOynTnUwcMAl9Qsxg9~VV5cLdilnGDB58ggwFy4b4Q6UHoQoBzrEhLzn2jjAw9O2odXmuZ8GXmKZxvpL7mU1QHLp7Vr~mKQMNcCkWigVx080GelEYmibMDP7KKWkxdDiy0agS~WdK1bdone3B78YsXtGndYCLVN2jDcosFxBtnpYvxZH6bfg0nw15IdVngdpDsrxTf3m~6BErWUiiwxsS0Arn4re4tCl~0cu~HW8~KqfVFu5iK4Ox5Z2O4VLjKhLtzvKYvVphvI2NW~cqpyNULskl7sx2Q8M0v3PTynRH31l6yllA3k8QHAlvojdrxkQ__&Key-Pair-Id=APKAIOZEL3AZBOGY7N2Q: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://lixil-portal.cloud.nuxeo.com' is therefore not allowed access.
      

      Adding 'Access-Control-Allow-Origin' to the whitelist seems to fix the issue but don't know if it is a proper solution for production

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: