[
https://issues.apache.org/jira/browse/LIVY-482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gyorgy Gal updated LIVY-482:
----------------------------
Fix Version/s: 0.10.0
(was: 0.9.0)
This issue has been moved to the 0.10.0 release as part of a bulk update. If
you feel this is moved out inappropriately, feel free to provide justification
and reset the Fix Version to 0.9.0.
> apache livy and ajax post requests: Method Not Allowed
> ------------------------------------------------------
>
> Key: LIVY-482
> URL: https://issues.apache.org/jira/browse/LIVY-482
> Project: Livy
> Issue Type: Request
> Components: Interpreter
> Affects Versions: 0.5.0
> Reporter: Melchicédec NDUWAYO
> Priority: Major
> Fix For: 0.10.0
>
>
> Good morning everyone,
> can someone help me to see why this jquery code can note create a session to
> the apache livy? I got these errors :
> *OPTIONS [http://localhost:8998/] 405 (Method Not Allowed)* and *Failed to
> load [http://localhost:8998/:] 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.
> *
> This is the code I used :
> {code:javascript}
> $.ajax({
> type: 'POST',
> contentType: "application/json; charset=utf-8",
> dataType: 'json',
> url: 'http://localhost:8998',
> data: {kind: 'spark'},
> success: function (resultat) {
> document.getElementById(response).innerHTML = resultat;
> console.log(resultat);
> }
> });
> {code}
> Thank you for your help!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)