공공데이터 OpenApi 사용 할려고 하는데.. 호출하는 api가 http라서 오류가 납니다. 어떻게 해야할까요?
-
jquery.min.js:2 Mixed Content: The page at 'https://html-first-mefwl.run.goorm.io/html_first/hanriver/temperature.html' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://openapi.seoul.go.kr:8088/6e79545a5173736f3130357977535557/json/WPOSInformationTime/1/5/'. This request has been blocked; the content must be served over HTTPS.
검색해보니...
요청하는 api 서버가 http 이기 때문에 브라우저에서 http 접속 허용하고, CORS 에러는 Express 로 cors 허용 프록시 서버 만들어서 요청하니 문제가 해결 됬네요... 휴...이런 답글을 봤는데요. 이게 너무 어려워서요. 구름ide 내의 작업중인 페이지에서 http 접속을 허용하고, 프록시서버를 또 만들어서 해결하는 방법 밖에 없을까요?
다른 방법은 없나요?