Click here to Skip to main content
15,357,293 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

        type: "POST",
        url: '' + 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 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.

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