Skip to content

Instantly share code, notes, and snippets.

@MasonM
Created June 19, 2019 20:28
Show Gist options
  • Save MasonM/5922c730c0b71d1d918919b0b23a8228 to your computer and use it in GitHub Desktop.
Save MasonM/5922c730c0b71d1d918919b0b23a8228 to your computer and use it in GitHub Desktop.
Sandboxing Naver pixel
// POC code for injecting the Naver wcslog.js tag inside an iframe sandbox
var iframe = document.createElement('iframe');
iframe.sandbox = 'allow-scripts';
iframe.srcdoc = '<script src="https://wcs.naver.net/wcslog.js" type="text/javascript"><\/script>';
document.body.appendChild(iframe);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment