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)

Reply via email to