can-iframe-url

Detect if an url can be included in an by detecting the X-Frame-Options header with a HEAD request.

Usage no npm install needed!

<script type="module">
  import canIframeUrl from 'https://cdn.skypack.dev/can-iframe-url';
</script>

README

can-iframe-url (in active development)

stability-stable

npm version Known Vulnerabilities dependency status devdependency status build status Code Climate downloads

NPM

Detect if an url can be included in an