You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| data | 2 years ago | |
| gradle/wrapper | 4 years ago | |
| repo | 4 years ago | |
| src | 3 years ago | |
| .gitignore | 4 years ago | |
| HELP.md | 4 years ago | |
| README.md | 3 years ago | |
| build.gradle | 3 years ago | |
| gradle.properties | 4 years ago | |
| gradlew | 4 years ago | |
| gradlew.bat | 4 years ago | |
| settings.gradle | 3 years ago | |
README.md
CORS 에러: The request client is not a secure context and the resource is in more-private address space local.
공인 IP대역에서 http POST 요청으로 text 타입 데이타 전송시 발생
웹서비스를 개발 하던 중 위와 같은 에러를 만났다.
서버 응답에 Access-Control-Allow-Origin: * 와 같은 CORS 허용 헤더를 다 넣어줬지만,
위와 같은 에러가 계속 발생했다. 알고보니 origin 보다, 더 낮은 수준의 네크워크로 요청을 보내는 경우,
위와같이 에러를 발생한다.
이를 해결하기 위해서는 브라우져 설정에서, 위와 같은 제한을 해제해주어야 한다.
그리고 당연한 소리겠지만, 운영 환경에서는 위와 같은 상황이 발생하면 안된다.
크롬의 경우: chrome://flags/#block-insecure-private-network-requests 에 들어가서 설정 disabled
엣지의 경우: edge://flags/#block-insecure-private-network-requests 에 들어가서 설정 disabled