Tech News

TitleAsync Cookie Store API, 크롬 87부터 사용 가능2020-10-21 10:01
Name Level 10

https://medium.com/nmc-techblog/introducing-the-async-cookie-store-api-89cbecf401f 


- 올드한 방식의 document.cookie 를 대체

- Promise를 리턴해서 Service Worker에서도 사용 가능

- 쿠키별 직접 접근, 루프를 통해 찾을 필요 없음

- 이벤트 리스너를 등록하여 쿠키 변경 모니터링

ㅤ→ await cookieStore.get('session_id')

ㅤ→ await cookieStore.set({ name: 'opt_out', value: '1' });

ㅤ→ await cookieStore.delete('session_id');

ㅤ→ cookieStore.subscribeToChanges([{ name: 'session_id' }])

G
M
T
음성 기능은 200자로 제한됨
Comment
Captcha Code
(Enter the auto register prevention code)
PrevNode.js v15 릴리즈happydaddy 2020-10-23
NextDiscord 는 어떻게 승리했나happydaddy 2020-10-21