node-iframe
Advanced tools
Comparing version 1.5.9 to 1.5.10
{ | ||
"name": "node-iframe", | ||
"version": "1.5.9", | ||
"version": "1.5.10", | ||
"description": "create a iframe on your server to bypass CORS issues. ( reverse engineer security issues )", | ||
@@ -5,0 +5,0 @@ "main": "dist/iframe.js", |
@@ -20,9 +20,9 @@ # node-iframe | ||
app.get("/iframe", (req, res) => | ||
app.get("/iframe", (req, res) => { | ||
res.createIframe({ | ||
url: req.query.url, | ||
baseHref: req.query.baseHref, // optional: determine how to control link redirects, | ||
config: JSON.parse(req.query.config), // optional: determine element cors or inlining #shape src/iframe.ts#L34 | ||
}) | ||
); | ||
config: { cors: { script: true } }, // optional: determine element cors or inlining #shape src/iframe.ts#L34 | ||
}); | ||
}); | ||
``` | ||
@@ -29,0 +29,0 @@ |
45960