Cordova CORS SMP 자원 요청 실패
test1: function() {
$.ajax({
type : "GET",
cache : false,
url: "http://smp.springworks.info:8081/app1/test/index2.jsp",
beforeSend : function(request) {
},
success : function(data, ajaxOptions, xhr) {
mymodules.Module1.debug("READ SUCCESS");
alert(data);
},
error : function(xhr, ajaxOptions, thrownError) {
mymodules.Module1.debug("READ FAILED");
alert(JSON.stringify(xhr));
alert(JSON.stringify(ajaxOptions));
alert(JSON.stringify(thrownError));
}
});
},
wireshark 모니터링 로그:
IGET /app1/test/index2.jsp?_=1476917522183 HTTP/1.1
Host: www.mdm.springworks.info:8081
Connection: keep-alive
Accept: */*
Origin: file://
User-Agent: Mozilla/5.0 (Linux; Android 5.0.2; Redmi Note 3 Build/LRX22G; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/45.0.2454.95 Mobile Safari/537.36
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,en-US;q=0.8
X-Requested-With: com.mycompany.logon
HTTP/1.1 403 Forbidden
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1009
Date: Wed, 19 Oct 2016 22:52:01 GMT
Server: SAP
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 코드:
test1: function() {
$.ajax({
headers: {
'X-SMP-APPCID': "c940cb2f-fef4-49d3-81e6-736273019fb4"
},
type : "GET",
cache : false,
url: "http://smp.springworks.info:8081/app1/test/index2.jsp",
beforeSend : function(request) {
},
success : function(data, ajaxOptions, xhr) {
mymodules.Module1.debug("READ SUCCESS");
alert(data);
},
error : function(xhr, ajaxOptions, thrownError) {
mymodules.Module1.debug("READ FAILED");
alert(JSON.stringify(xhr));
alert(JSON.stringify(ajaxOptions));
alert(JSON.stringify(thrownError));
}
});
},
SMP wireshak 모니터링 로그:
OPTIONS /app1/test/index2.jsp?_=1476917672878 HTTP/1.1
Host: smp.springworks.info:8081
Connection: keep-alive
Access-Control-Request-Method: GET
Origin: file://
User-Agent: Mozilla/5.0 (Linux; Android 5.0.2; Redmi Note 3 Build/LRX22G; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/45.0.2454.95 Mobile Safari/537.36
Access-Control-Request-Headers: accept, x-smp-appcid
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,en-US;q=0.8
X-Requested-With: com.mycompany.logon
HTTP/1.1 403 Forbidden
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1009
Date: Wed, 19 Oct 2016 22:54:32 GMT
Server: SAP
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Cordova CORS SMP 자원 요청 실패코드: wireshark 모니터링 로그: = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 코드: SMP wireshak 모니터링 로그:...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.