Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9241

Review CORS Security Configuration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.0, 1.14.0
    • 1.15.0
    • Core UI, Security
    • None

    Description

      The NiFi Web Security Configuration includes a custom CORS Configuration Source that disallows HTTP POST requests for Template Uploads. The works as expected with direct access to the NiFi UI, but causes issues when attempting to upload a template to NiFi through a reverse proxy.

      When a web browser sends a template upload request that includes an unexpected Origin header, the Spring CORS Filter returns HTTP 403 Forbidden with a response body containing the message Invalid CORS RequestNIFI-6080 describes a workaround that involves setting a different Origin header.  The current approach as implemented in NIFI-5595 should be evaluated for potential improvements to avoid this behavior when running NiFi with a reverse proxy.

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m