플러터 InAppWebView안에서 오류창 안닫힘 문제
여기서 닫기 버튼 눌렀을 때 오류창이 닫히질 않는데 어떡하면 좋을까요?
결제 위젯 예제에 나오는 checkout.html그대로 InAppWebView안에 넣어 flutter web모드로 띄웠습니다.
에러 :
_app-00373dd622c25c73.js:29 Unsafe attempt to initiate navigation for frame with origin 'null' from frame with URL 'https://payment-gateway-sandbox.tosspayments.com/pc/direct?clientKey=test_g…b3b7ecb…&mId=tgen_docs'. The frame attempting navigation is sandboxed, and is therefore disallowed from navigating its ancestors.
framework-b76786950b43f91f.js:9 Uncaught SecurityError: Failed to set the 'href' property on 'Location': The current window does not have permission to navigate the target frame to 'https://pages.tosspayments.com/error/?code=DUPLICATED_ORDER_ID&message=%EC%…C%20%EC%A7%84%ED%96%89%ED%95%B4%EC%A3%BC%EC%84%B8%EC%9A%94.&orderId=000264'.
at Object.onClick (_app-00373dd622c25c73.js:29:12528)
at onClick (_app-00373dd622c25c73.js:47:30898)
at Object.eU (framework-b76786950b43f91f.js:9:14910)
at eH (framework-b76786950b43f91f.js:9:15064)
at framework-b76786950b43f91f.js:9:33370
at re (framework-b76786950b43f91f.js:9:33469)
at rn (framework-b76786950b43f91f.js:9:33883)
at framework-b76786950b43f91f.js:9:39339
at oP (framework-b76786950b43f91f.js:9:96254)
at eF (framework-b76786950b43f91f.js:9:14048)
결제 위젯 예제에 나오는 checkout.html그대로 InAppWebView안에 넣어 flutter web모드로 띄웠습니다.
에러 :
_app-00373dd622c25c73.js:29 Unsafe attempt to initiate navigation for frame with origin 'null' from frame with URL 'https://payment-gateway-sandbox.tosspayments.com/pc/direct?clientKey=test_g…b3b7ecb…&mId=tgen_docs'. The frame attempting navigation is sandboxed, and is therefore disallowed from navigating its ancestors.
framework-b76786950b43f91f.js:9 Uncaught SecurityError: Failed to set the 'href' property on 'Location': The current window does not have permission to navigate the target frame to 'https://pages.tosspayments.com/error/?code=DUPLICATED_ORDER_ID&message=%EC%…C%20%EC%A7%84%ED%96%89%ED%95%B4%EC%A3%BC%EC%84%B8%EC%9A%94.&orderId=000264'.
at Object.onClick (_app-00373dd622c25c73.js:29:12528)
at onClick (_app-00373dd622c25c73.js:47:30898)
at Object.eU (framework-b76786950b43f91f.js:9:14910)
at eH (framework-b76786950b43f91f.js:9:15064)
at framework-b76786950b43f91f.js:9:33370
at re (framework-b76786950b43f91f.js:9:33469)
at rn (framework-b76786950b43f91f.js:9:33883)
at framework-b76786950b43f91f.js:9:39339
at oP (framework-b76786950b43f91f.js:9:96254)
at eF (framework-b76786950b43f91f.js:9:14048)

