sitelink1 | http://www.w3.org/TR/XMLHttpRequest/#the...-attribute |
---|---|
sitelink2 | |
sitelink3 | |
sitelink4 | |
extra_vars4 | |
extra_vars5 | |
extra_vars6 |
- 동기(synchronous) ajax 호출시 withCredentials을 true로 설정하면 InvalidAccessError가 발생
- async옵션을 true로 하거나 withCredentials 설정을 false로 하면 정상 동작
- widthCredentials를 제거하면 서버에서 cookies, HTTP authentication, and client-side SSL certificates을 읽지 못함
- Cors 요청은 기본적으로 Non-Credential 요청, 따라서 HTTP Cookie와 HTTP Authentication 정보를 인지 못함
-> 그래서 서버페이지에서 credential 을 true하면 문제가 해결된다
-> response.setHeader("Access-Control-Allow-Credentials", "true");
또는 <param-name>cors.support.credentials</param-name><param-value>true</param-value>
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
5 | window.postMessage() | 황제낙엽 | 2020.07.29 | 608 |
» | withCredentials 관련 | 황제낙엽 | 2020.07.29 | 336 |
3 | CORS 관련 레퍼런스 URL | 황제낙엽 | 2020.07.10 | 367 |
2 |
window.postMessage 이해하기
![]() | 황제낙엽 | 2017.10.16 | 1899 |
1 |
IFrames and cross-domain security
![]() | 황제낙엽 | 2012.01.13 | 518 |