Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7760

Sling Main Servlet - Change header configuration to a service

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The ability to set headers must be done prior to any writing that occurs the output stream. This is the reason why the headers are set to be configured in the Sling Main Servlet.

      With Sling being used to maintain multiple sites, having a single set of response headers creates problems where the header provides a non tailored response. One site may have a conflicting set of requirements then another site.

      If the setting of headers was moved from being a configuration to being a service used by the Main Servlet, this would allow the following:

      • Headers set on a per site basis
      • Headers based on selected resource
      • Ability to modify the headers without causing the restart of the Sling Main Servlet
        • Which if you're dealing with CSP headers can be a constant pain
      • Ability to create a CSP configuration Service that eases the use of CSP creation

       

       

      Attachments

        Activity

          People

            jebailey Jason E Bailey
            jebailey Jason E Bailey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: