Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. before do
  2. headers 'Access-Control-Allow-Origin' => '*',
  3. 'Access-Control-Allow-Methods' => ['OPTIONS', 'GET', 'POST'],
  4. 'Access-Control-Allow-Headers' => ['Content-Type', 'Accept', 'X-Requested-With', 'access_token']
  5.  
  6. env['rack.errors'] = error_logger
  7. end
  8.  
  9. $.ajax({
  10. type: "POST",
  11. url: "http://findaspot.multimediatechnology.at/api/",
  12. data: json,
  13. dataType: "json",
  14. success: function (data) {
  15. console.log('Success!');
  16. console.log(data);
  17. },
  18. error: function(xhr, status, error) {
  19. var err = eval("(" + xhr.responseText + ")");
  20. alert(err.Message);
  21. }
  22. })
  23.  
  24. XMLHttpRequest cannot load http://findaspot.multimediatechnology.at/api/. Invalid HTTP status code 404
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement