This code throws SyntaxError: Unexpected token W. Why? And how to fix it?
http({
method: 'POST',
url: defaultUrl,
data: $.param(newPlayer),.
headers: {'Content-Type': 'application/x-www-form-urlencoded'}
})
Thanks for answers.