0
Picasa API에서 POST로 어려움을 겪었습니다. 이미 문제없이 GET을 통해 몇 가지 정보를 검색 한Picasa API에 대한 POST 요청
$.ajax({
type: "POST",
url: 'https://picasaweb.google.com/data/feed/api/user/' + uid + '/albumid/' + album_id + '/photoid/' + photo_id,
crossDomain: true,
data: { content: content },
success: function() { alert("Success"); },
error: function() { alert('Failed!'); }
});
: 여기에 코드입니다.
XMLHttpRequest cannot load
https://picasaweb.google.com/data/feed/api/user/userid/albumid/albumid/photoid/photoid?content=foo%bar.
Origin http://localhost:3000 is not allowed by
Access-Control-Allow-Origin
:이 오류가 발생 구글과 서비스를 테스트 할 때
이제 재미있는 부분 온다.
그리고 Firefox에서 시도 할 때 요청 헤더 메소드가 OPTIONS
으로 변경되고 상태는 204: no content
입니다.
또한 datatype
을 jsonp
으로 변경하려고 시도했지만 HTTP 메서드가 GET
으로 변경되고 그림에 대한 정보가 검색됩니다.
해결책을 찾으십니까? –