You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Zachary King (JIRA)" <ji...@apache.org> on 2018/02/20 21:41:03 UTC

[jira] [Created] (LIVY-444) Add OPTIONS routes to REST API to enable CORS pre-flight requests

Zachary King created LIVY-444:
---------------------------------

             Summary: 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


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)