이문행
이문행7h ago

flutter 연동후 에러

안녕하세요. flutter로 개발된 web에서 결제 테스트 진행입니다. 결제창 팝업, 결제인증후 최종 단계에서 결제창이 로딩UX만 계속 돌고 있습니다. 브라우져 콘솔에 보면 아래와 같은 에러가 찍혀 있습니다.
_app-8a07ff99ed40f1f1.js:29 Unsafe attempt to initiate navigation for frame with origin 'https://dev-web.dararara.com' from frame with URL 'https://payment-gateway-sandbox.tosspayments.com/pc/direct?token=10966d288bcb4f0791829ce64c85034c14decf3240424a7e9636be51a1351adf&authType=KMPI&cardCode=21&gtid=a251211EHT1t9BsNsppBLDa8ZEzycN2HGCXoX65'. The frame attempting navigation is neither same-origin with the target, nor is it the target's parent or opener.


_app-8a07ff99ed40f1f1.js:29 Uncaught SecurityError: Failed to set a named property 'href' on 'Location': The current window does not have permission to navigate the target frame to 'https://dev-web.dararara.com/order/payment/success?v=9f53b48057b18378d11604ab141849186eb749977dcef7846a0b5c81472739b9&paymentType=NORMAL&orderId=6a4a2ea6-d4ac-426e-9513-5de85cb6d1c5&paymentKey=tgen_20251211132654rPWN9&amount=3218'.
at _app-8a07ff99ed40f1f1.js:29:9811
at _app-8a07ff99ed40f1f1.js:29:9886
at y (_app-8a07ff99ed40f1f1.js:29:9903)
at 7277-180a7af8ca9a5613.js:1:31372
at e (7277-180a7af8ca9a5613.js:1:39686)
(anonymous) @ _app-8a07ff99ed40f1f1.js:29
(anonymous) @ _app-8a07ff99ed40f1f1.js:29
y @ _app-8a07ff99ed40f1f1.js:29
(anonymous) @ 7277-180a7af8ca9a5613.js:1
e @ 7277-180a7af8ca9a5613.js:1
postMessage
(anonymous) @ result-65b4971a10f4d66a.js:1
Promise.then
(anonymous) @ result-65b4971a10f4d66a.js:1
onSuccess @ result-65b4971a10f4d66a.js:1
await in onSuccess
i @ result-65b4971a10f4d66a.js:1
(anonymous) @ result-65b4971a10f4d66a.js:1
uI @ framework-a79e23d076e15596.js:9
oU @ framework-a79e23d076e15596.js:9
o @ framework-a79e23d076e15596.js:9
x @ framework-a79e23d076e15596.js:33
T @ framework-a79e23d076e15596.js:33
_app-8a07ff99ed40f1f1.js:29 Unsafe attempt to initiate navigation for frame with origin 'https://dev-web.dararara.com' from frame with URL 'https://payment-gateway-sandbox.tosspayments.com/pc/direct?token=10966d288bcb4f0791829ce64c85034c14decf3240424a7e9636be51a1351adf&authType=KMPI&cardCode=21&gtid=a251211EHT1t9BsNsppBLDa8ZEzycN2HGCXoX65'. The frame attempting navigation is neither same-origin with the target, nor is it the target's parent or opener.


_app-8a07ff99ed40f1f1.js:29 Uncaught SecurityError: Failed to set a named property 'href' on 'Location': The current window does not have permission to navigate the target frame to 'https://dev-web.dararara.com/order/payment/success?v=9f53b48057b18378d11604ab141849186eb749977dcef7846a0b5c81472739b9&paymentType=NORMAL&orderId=6a4a2ea6-d4ac-426e-9513-5de85cb6d1c5&paymentKey=tgen_20251211132654rPWN9&amount=3218'.
at _app-8a07ff99ed40f1f1.js:29:9811
at _app-8a07ff99ed40f1f1.js:29:9886
at y (_app-8a07ff99ed40f1f1.js:29:9903)
at 7277-180a7af8ca9a5613.js:1:31372
at e (7277-180a7af8ca9a5613.js:1:39686)
(anonymous) @ _app-8a07ff99ed40f1f1.js:29
(anonymous) @ _app-8a07ff99ed40f1f1.js:29
y @ _app-8a07ff99ed40f1f1.js:29
(anonymous) @ 7277-180a7af8ca9a5613.js:1
e @ 7277-180a7af8ca9a5613.js:1
postMessage
(anonymous) @ result-65b4971a10f4d66a.js:1
Promise.then
(anonymous) @ result-65b4971a10f4d66a.js:1
onSuccess @ result-65b4971a10f4d66a.js:1
await in onSuccess
i @ result-65b4971a10f4d66a.js:1
(anonymous) @ result-65b4971a10f4d66a.js:1
uI @ framework-a79e23d076e15596.js:9
oU @ framework-a79e23d076e15596.js:9
o @ framework-a79e23d076e15596.js:9
x @ framework-a79e23d076e15596.js:33
T @ framework-a79e23d076e15596.js:33
7 Replies
토스페이먼츠 BOT
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) : - 문의 내용 :
(문제가 발생한 이미지나 전체 결제흐름 동영상을 첨부해주시면 빠른 분석을 받으실 수 있습니다.)
* 계약관련 내용은 1544-7772로 문의주세요. * 주말/공휴일에는 답변이 늦을 수 있어요.
이문행
이문행OP7h ago
순서대로 스크린샷 첨부드립니다.
No description
No description
No description
이문행
이문행OP7h ago
flutter로 연동하는 샘플 소스 입니다.
이실장
이실장7h ago
코드는 봐드리지 않아요 flutter web만들고 계신거에요?
이문행
이문행OP7h ago
네. web, ios, android 모두 빌드예정입니다. 코드는 혹시 샘플 실행이 필요하실까봐 업로드했습니다. 앱개발자한테 샘플 만들어서 저도 전달까지만 하는 입장이라..
이실장
이실장7h ago
_app-8a07ff99ed40f1f1.js:29 Unsafe attempt to initiate navigation for frame with origin 'https://dev-web.dararara.com' from frame with URL 'https://payment-gateway-sandbox.tosspayments.com/pc/direct?token=10966d288bcb4f0791829ce64c85034c14decf3240424a7e9636be51a1351adf&authType=KMPI&cardCode=21&gtid=a251211EHT1t9BsNsppBLDa8ZEzycN2HGCXoX65'. The frame attempting navigation is neither same-origin with the target, nor is it the target's parent or opener. iframe으로 동작하는 flutter web 특성상 cors가 터져서 그럴거에요 flutter web은 저희가 따로 공식 가이드 드리는 내용은 없습니다. cors를 자체 해결해주셔야할 것 같아요
토스페이먼츠 BOT
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.

Did you find this page helpful?