You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Jakob Frank (JIRA)" <ji...@apache.org> on 2014/11/11 10:55:34 UTC

[jira] [Updated] (MARMOTTA-566) special headers (like Location) are not accessible in CORS request responses

     [ https://issues.apache.org/jira/browse/MARMOTTA-566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Frank updated MARMOTTA-566:
---------------------------------
    Affects Version/s: 3.2.1

> special headers (like Location) are not accessible in CORS request responses
> ----------------------------------------------------------------------------
>
>                 Key: MARMOTTA-566
>                 URL: https://issues.apache.org/jira/browse/MARMOTTA-566
>             Project: Marmotta
>          Issue Type: Bug
>          Components: Platform
>    Affects Versions: 3.2.1
>            Reporter: Luca Szabó
>            Assignee: Jakob Frank
>              Labels: CORS
>             Fix For: 3.3.0
>
>
> I'm working on a GUI which uses Marmotta. It's built with JS using ajax requests. I'm trying to create a new resource, then show the user the location of the created resource. For this, I use the XHR object and the standard getResponseHeader() method to get the value of the "Location" header. The problem is that in case of CORS requests, the  getResponseHeader() method can't reach the "Location" header since it's not a simple response header and it can access non-simple headers only if the response contains the "Access-Control-Expose-Headers" header which lists them. I can't see this header in the response and I can't access the "Location" header.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)