수고하십니다.
PC 연동 PC 결제의 경우 Popup 혹은 Layer 방식으로 next_redirect_pc_url을 직접 띄워줍니다.
layer 방식으로 띄울수 있다고 되어 있는데
if(data.data.tid != '') {
$.ajax({
type: 'get' ,
url: data.data.next_redirect_pc_url,
dataType : 'html' ,
success: function(data) {
$("#kkopay").empty();
$("#kkopay").html(data);
}
});
이런식으로 띄어 봤는데요
Failed to load https://pg-web.kakao.com/v1/d3deed5a8cd121de46793344ba085815b19f72aa26180f8572c9a154c6db3d8b/info: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://www.testgut.com’ is therefore not allowed access.
스크립트 에러가 납니다.
layer 방식으로 띄울수 있는 방법이 뭐가 있을까요?