You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Melchicédec NDUWAYO (JIRA)" <ji...@apache.org> on 2018/07/09 21:24:00 UTC
[jira] [Commented] (LIVY-444) Add OPTIONS routes to REST API to
enable CORS pre-flight requests
[ https://issues.apache.org/jira/browse/LIVY-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16537623#comment-16537623 ]
Melchicédec NDUWAYO commented on LIVY-444:
------------------------------------------
Hi everyone.
Is there any solution proposed for this issue? I am having this issue in my ajax requests to the apache livy REST API. The error message is : Failed to load http://localhost:8998/sessions: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8084' is therefore not allowed access. The response had HTTP status code 405.
I need your help please!
> Add OPTIONS routes to REST API to enable CORS pre-flight requests
> -----------------------------------------------------------------
>
> Key: LIVY-444
> URL: https://issues.apache.org/jira/browse/LIVY-444
> Project: Livy
> Issue Type: Improvement
> Reporter: Zachary King
> Priority: Major
>
> Currently, when one tries to send a POST request to the Livy REST API using a JavaScript client, any CORS pre-flight requests fail because the Livy REST API does not have routes to handle OPTIONS requests.
> I recommend adding routes for OPTIONS requests to respond with a header to allow all origins, or have this header be configurable in the `livy-client.conf` (perhaps in a setting like `livy.client.http.allowed-origins`).
> If this is an improvement that is agreed on, can I take a stab at it?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)