728x90
๋ฐ์ํ
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials
XMLHttpRequest.withCredentials - Web APIs | MDN
The XMLHttpRequest.withCredentials property is a boolean value that indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates. Setting withCredentials has
developer.mozilla.org
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://example.com/', true);
xhr.withCredentials = true;
xhr.send(null);
xhr.withCredentials = true;
send ํ๊ธฐ ์ด์ ์, ์์ ํ ์ค์ ์ถ๊ฐํด์ฃผ์๋ฉด ๋ฉ๋๋ค.
728x90
๋ฐ์ํ
'๐ฅ๏ธํ๋ก ํธ์๋ > HTML | CSS | JAVASCRIPT' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
html - ๊ฐ๋ฐ์ ๋๊ตฌ ๋ง๊ธฐ(์ฌ์ฉํ๊ธฐ ํ๋ค๊ฒ) (0) | 2022.02.24 |
---|---|
์๋ฐ์คํฌ๋ฆฝํธ - localStorage์ ํด๋์ค ๋ณ์ ์ ์ฅํ๊ธฐ (0) | 2022.02.10 |
์๋ฐ์คํฌ๋ฆฝํธ - canvas base64 ๋ฐ์ดํฐ ์ถ์ถ (0) | 2021.12.08 |
์๋ฐ์คํฌ๋ฆฝํธ - html ์คํฌ๋ฆฐ์ทํ๊ธฐ html2canvas (0) | 2021.12.08 |
CSS - ๋ฏธ๋์ด ์ฟผ๋ฆฌ (0) | 2021.11.29 |