Click here to Skip to main content
15,120,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i'v been struggling with POST on Picasa API.
Here's code

JavaScript
    $.ajax({
        type: "POST",
        url: 'https://picasaweb.google.com/data/feed/api/user/' + uid + '/albumid/' + album_id + '/photoid/' + photo_id + '?content=' + content,
        crossDomain: true,
        data: { content: content },
success: function() { alert("Success"); },
error: function() { alert('Failed!'); }
   });


I've already retrieved some informations via GET without problems. Now when i try to do post in chrome i got this error

XMLHttpRequest cannot load https://picasaweb.google.com/data/feed/api/user/jasenko.hadziomeragic@gmail.com/albumid/5623228006440615505/photoid/5813338978197482482?content=%20dsad%20sa%20d. Origin http://localhost:3000 is not allowed by Access-Control-Allow-Origin.

And when i try in firefox in request header method is changed to OPTIONS and status is 204: no content. Also, I've tried to change datatype to jsonp but then http method chages to GET.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900