결제 창 진행 CROS 문제
안녕하세요?
아마 방법이 없을 듯 한데
어떻게든 방법을 찾아 주시지 않을까 하여 문의 남깁니다.
간단하겐 CROS문제 입니다.
현재 사이트가
frameset에 감싸져 있고 이 상태에서
PG 호출 형태를 iframe 형태로 하고 있습니다.
창은 무난하게 뜨지만,
진행 과정에서 아래와 같은 문구가 발생하여 진행되지 않습니다.
Unsafe attempt to initiate navigation for frame with origin 'https://test.com' from frame with URL 'https://api.tosspayments.com/proxy/pages/setup/test_ck_'. The frame attempting navigation is neither same-origin with the target, nor is it the target's parent or opener.
Uncaught DOMException: Failed to set the 'href' property on 'Location': The current window does not have permission to navigate the target frame to 'https://test.com/success.asp'.
필수 정보는 제거 후 올린 것이지만
어떤 상태인지는 아실 거라 생각합니다.
여러가지 시도해본 결과
해결하는 방법으로는
감싸진 프레임 밖으로 URL을 노출 시켜 진행하는 방법이 있고
iframe 호출 대신 self로 호출하는 방법이 있습니다.
하지만 프레임에 감싸진 상태로
iframe 호출하는 방법이 있으면 좋겠어서 문의 드립니다.
위 두 가지 방법이 전부일까요?
도와주세요
아마 방법이 없을 듯 한데
어떻게든 방법을 찾아 주시지 않을까 하여 문의 남깁니다.
간단하겐 CROS문제 입니다.
현재 사이트가
frameset에 감싸져 있고 이 상태에서
PG 호출 형태를 iframe 형태로 하고 있습니다.
창은 무난하게 뜨지만,
진행 과정에서 아래와 같은 문구가 발생하여 진행되지 않습니다.
Unsafe attempt to initiate navigation for frame with origin 'https://test.com' from frame with URL 'https://api.tosspayments.com/proxy/pages/setup/test_ck_'. The frame attempting navigation is neither same-origin with the target, nor is it the target's parent or opener.
Uncaught DOMException: Failed to set the 'href' property on 'Location': The current window does not have permission to navigate the target frame to 'https://test.com/success.asp'.
필수 정보는 제거 후 올린 것이지만
어떤 상태인지는 아실 거라 생각합니다.
여러가지 시도해본 결과
해결하는 방법으로는
감싸진 프레임 밖으로 URL을 노출 시켜 진행하는 방법이 있고
iframe 호출 대신 self로 호출하는 방법이 있습니다.
하지만 프레임에 감싸진 상태로
iframe 호출하는 방법이 있으면 좋겠어서 문의 드립니다.
위 두 가지 방법이 전부일까요?
도와주세요
