Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2676

NewCrossOriginResourceSharingFilter should contain a "Access-Control-Expose-Headers" for "Location"

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 3.3.1.Final
    • 3.3.0.Final
    • Java EE
    • None

      NewCrossOriginResourceSharingFilter should contain a "Access-Control-Expose-Headers" for "Location" by default or it should be possible to add it when calling the CORS command.

      This is how I worked around it in the NewCrossOriginResourceSharingFilter.java filer :

      response.getHeaders()
      		.putSingle("Access-Control-Expose-Headers",
      				"Location");
      

              rhn-support-ggastald George Gastaldi
              sebastienblanc Sebastien Blanc (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: