You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Niclas Hoyer (JIRA)" <ji...@apache.org> on 2012/07/14 18:01:34 UTC
[jira] [Created] (JENA-276) CORS not working properly for preflight
requests
Niclas Hoyer created JENA-276:
---------------------------------
Summary: CORS not working properly for preflight requests
Key: JENA-276
URL: https://issues.apache.org/jira/browse/JENA-276
Project: Apache Jena
Issue Type: Bug
Components: Fuseki
Affects Versions: Fuseki 0.2.2
Reporter: Niclas Hoyer
I tried to access a Fuseki Server by using an ajax request. Unfortunately the browser just sends an OPTIONS request and stops.
Fuseki returns correct Access-Control-Allow-Origin headers for a POST request, but I think it also needs to return them on an OPTIONS request [1]. Otherwise the browser would not allow the request.
I tested this with Firefox 13.0.1.
[1] https://gist.github.com/a8af6897f2ce1f69c459
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (JENA-276) CORS not working properly for
preflight requests
Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne resolved JENA-276.
--------------------------------
Resolution: Fixed
Assignee: Andy Seaborne
Added to OPTIONS for SPARQL Query.
Thanks for pointing it out.
> CORS not working properly for preflight requests
> ------------------------------------------------
>
> Key: JENA-276
> URL: https://issues.apache.org/jira/browse/JENA-276
> Project: Apache Jena
> Issue Type: Bug
> Components: Fuseki
> Affects Versions: Fuseki 0.2.2
> Reporter: Niclas Hoyer
> Assignee: Andy Seaborne
> Labels: cors, fuseki
>
> I tried to access a Fuseki Server by using an ajax request. Unfortunately the browser just sends an OPTIONS request and stops.
> Fuseki returns correct Access-Control-Allow-Origin headers for a POST request, but I think it also needs to return them on an OPTIONS request [1]. Otherwise the browser would not allow the request.
> I tested this with Firefox 13.0.1.
> [1] https://gist.github.com/a8af6897f2ce1f69c459
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (JENA-276) CORS not working properly for preflight
requests
Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne closed JENA-276.
------------------------------
> CORS not working properly for preflight requests
> ------------------------------------------------
>
> Key: JENA-276
> URL: https://issues.apache.org/jira/browse/JENA-276
> Project: Apache Jena
> Issue Type: Bug
> Components: Fuseki
> Affects Versions: Fuseki 0.2.2
> Reporter: Niclas Hoyer
> Assignee: Andy Seaborne
> Labels: cors, fuseki
>
> I tried to access a Fuseki Server by using an ajax request. Unfortunately the browser just sends an OPTIONS request and stops.
> Fuseki returns correct Access-Control-Allow-Origin headers for a POST request, but I think it also needs to return them on an OPTIONS request [1]. Otherwise the browser would not allow the request.
> I tested this with Firefox 13.0.1.
> [1] https://gist.github.com/a8af6897f2ce1f69c459
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira