카카오페이 데모 html 을 로컬에서 실행하니깐 아래와 같은 에러가 나는데요…
jquery-3.2.1.min.js:4 GET https://kapi.kakao.com/v1/payment/web/ready 404 (Not Found)
send @ jquery-3.2.1.min.js:4
ajax @ jquery-3.2.1.min.js:4
payment @ KakaoPay.html:257
onclick @ KakaoPay.html:228
KakaoPay.html:1 Failed to load https://kapi.kakao.com/v1/payment/web/ready: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8000’ is therefore not allowed access. The response had HTTP status code 404.
크로스도에인 에러인거 같은데 html 파일을 서버에 올려서 실행해야 하나요?
데모html 파일에 요청 주소를 https://kapi.kakao.com/v1/payment/ready 와 같이 변경하니깐 403 에러가 나네요.