AngularJS에서 일부 통계를 추적하고 사용자가 추가 처리를 위해 Google Apps 스크립트에 제출할 수있는 응용 프로그램을 만들려고했습니다. 모든 것은 컴퓨터에서 완벽하게 작동합니다. Chrome 및 Firefox에서 테스트했지만 iPad에서 제출하려고하면 다음과 같은 오류가 발생합니다.405 Method Not Allowed - iOS Safari를 제외한 모든 기능을 수행합니다.
리소스를로드하지 못했습니다. 서버가 405 상태로 응답했습니다 (메서드가 허용되지 않음)
리소스를로드하지 못했습니다 : null에서 요청할 수 없습니다.
XMLHttpRequest는 https://script.googleusercontent.com/macros/echo?user_content_key=UQXGbRq6...HLV301R을로드 할 수 없습니다. null로부터의 요구는 할 수 없다.
var URL = 'https://script.google.com/macros/s/.../exec';
$http.post(URL,
$.param({ packet: JSON.stringify($scope.data) }), {
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
}
}
).success(function(data, status) {
alert(data.packet);
$scope.rollover();
}).error(function(data, status) {
console.log(data);
console.log(status);
$scope.show_status(data);
});
콘솔에 몇 줄을 인쇄합니다. 데이터 라인이 비어 있고 반환 된 상태는 404입니다.
도와주세요!
아래에 업데이트를 게시했습니다. –