https://github.com/leonardfactory/test-cookie-block
Test dell'hack su document.cookie per permettere il blocco preventivo.
https://github.com/leonardfactory/test-cookie-block
Last synced: 5 months ago
JSON representation
Test dell'hack su document.cookie per permettere il blocco preventivo.
- Host: GitHub
- URL: https://github.com/leonardfactory/test-cookie-block
- Owner: leonardfactory
- Created: 2015-06-01T20:39:05.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-01T20:40:24.000Z (about 11 years ago)
- Last Synced: 2024-04-14T18:26:32.219Z (about 2 years ago)
- Language: HTML
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Test Cookie Block
In merito alla normativa EU Cookie Law, è nata l'esigenza di permettere il blocco preventivo dei cookie.
L'hack JS su `document.cookie`, che sovrascrive le funzionalità di lettura e scrittura dei cookie, è utile per quanto riguarda i cookie di **prima parte**, tuttavia non è efficace per i cookie di **terze parti**.
L'esempio qui presente mostra la limitazione dell'hack in caso di script embedded in un iframe.
##Installazione
Per eseguire il test, clonare la repository ed eseguire nella cartella così ottenuta:
```sh
$ npm install
$ sudo gulp serve
```
Modificare il file degli host aggiungendo:
```
127.0.0.1 test-host1.local
127.0.0.1 test-host2.local
```
Per vedere i test, puntare il browser su [http://test-host1.local]() ed ispezionare i cookie impostati.