
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
gatsby-plugin-contentstack-client-side-redirect
Advanced tools
Generates client side redirect html files for redirecting on any static site host like s3 or netlify.
Generates client side redirect html files for redirecting on any static site host like s3 or netlify.
It uses window.location.href = url
for redirection and createRedirect
action provided by Gatsby
npm install --save gatsby-plugin-contentstack-client-side-redirect
// Register this plugin in gatsby-config.js
plugins: [
`gatsby-plugin-contentstack-client-side-redirect`,
`gatsby-plugin-client-side-redirect` // make sure to put last in the array
];
For contentstack specific only -
Steps -
Redirects
Redirects
contenttypeold_url
and new_url
and save itHave a look at the code if you are interested :)
const response = await graphql(`
query redirects {
allContentstackRedirects {
edges {
node {
urls_mapping {
old_url
new_url
}
}
}
}
}`)
const allEntries = response.data.allContentstackRedirects.edges
let urls
if (allEntries)
{
allEntries.forEach(entry => {
urls = entry.node.urls_mapping
if (urls)
{
createRedirect({ fromPath: urls.old_url, toPath: urls.new_url, isPermanent: true })
}
})
}
FAQs
Generates client side redirect html files for redirecting on any static site host like s3 or netlify.
The npm package gatsby-plugin-contentstack-client-side-redirect receives a total of 43 weekly downloads. As such, gatsby-plugin-contentstack-client-side-redirect popularity was classified as not popular.
We found that gatsby-plugin-contentstack-client-side-redirect demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.