Click here to Skip to main content
12,556,660 members (71,405 online)
Rate this:
Please Sign up or sign in to vote.
See more: Ajax API
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.
Posted 22-Nov-12 2:00am

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.161026.1 | Last Updated 22 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100