Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-iframe

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-iframe

create a iframe on your server to bypass cors issues. ( reverse engineer security issues )

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
34
decreased by-62.22%
Maintainers
1
Weekly downloads
 
Created
Source

Node iframe

create iframes to bypass security issues on your server with node js

Installation

yarn install node-iframe

How to use

const createIframe = require("node-iframe");

app.use(createIframe);

app.get("/iframe", (req, res) =>
  res.createIframe({
    sourceUrl: req.query.url,
    baseHref: req.query.baseHref || true
  })
)``;

Params

Node iframe has one param Object with a sourceUrl prop that is the url of the website and baseHref is optional property that will inject crossorigin="anonymous" onto all your script tags.

About

This project uses cheerio to manipulate dom contents very fast

Keywords

FAQs

Package last updated on 06 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc