Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apache livy and ajax post requests: Method Not Allowed #1

Open
Melchipaul opened this issue Jul 6, 2018 · 0 comments
Open

apache livy and ajax post requests: Method Not Allowed #1

Melchipaul opened this issue Jul 6, 2018 · 0 comments

Comments

@Melchipaul
Copy link

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 :

`$.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);

        }

    });`

Thank you for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant