Hi.
I’m trying to login hotspot users by issuing an ajax call to eg. http://10.5.50.1/login.
From chrome browser, I’m receiving “No ‘Access-Control-Allow-Origin’ header is present..”, however, the user is actually logged in successfully.
When trying with curl, eg:
curl -L -X post -d '{"username": "test", "password": "12345"}' "http://10.50.5.1/login"
the response is “Error 400: can’t read POST data”.
My ajax call looks something like this:
$.ajax({url: 'http://10.5.50.1/login',
type: 'POST',
data: {
username: "test",
password: "12345",
dst: "http://someurl"
})
I’m using ROSv 6.11. Any ideas on how I could either add an Access-Control-Allow-Origin header, or get a sensible response when posting?