Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
node-iframe
Advanced tools
Readme
create iframes to bypass security issues on your server with node.js can also be used on the client
yarn install node-iframe
On your server
const createIframe = require("node-iframe");
app.use(createIframe);
app.get("/iframe", (req, res) =>
res.createIframe({
url: req.query.url,
baseHref: req.query.baseHref, // optional,
})
);
On the client use directly in your iframe if your api is on the same server set the url below like this or if your using a framework like gatsby, nextjs, etc
<iframe src="/iframe/?url=https://www.etsy.com" />
You can even fetch the iframe directly on the content if needed.
const { fetchFrame, configureCacheControl } = require("node-iframe");
// optional: configure cache-control
configureCacheControl({ stdTTL: 0, checkperiod: 600 });
async function fetchIframe() {
return await fetchFrame("/iframe/?url=https://www.etsy.com");
}
Screenshot above is an example image of the package used at A11ywatch
Node iframe has one param Object with a url
prop that is the url of the website and baseHref
is optional property that will inject crossorigin="anonymous" onto all your script tags.
This project uses cheerio to manipulate dom contents very fast. If your iframe fails to render thats where the security issues need to be reverse hacked by us. As an alternative solution if the iframe fails to load simply fall back to the normal url of web page. You can fire this as an api request directly with fetch
to get the website as html or use directly as your iframe src for best performance.
MIT
FAQs
create iframes on your server to bypass CORS. Reverse engineer security issues.
We found that node-iframe demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).