
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).
Instajax is a lightweight JavaScript library that enhances web app navigation by seamlessly updating
content via AJAX without reloading the page. It leverages modern browser features like fetch
,
history.pushState
, and MutationObserver
to provide a smooth user experience.
fetch
, history.pushState
, and
MutationObserver
).Put the script tag to head of your template HTML. It will initialize automatically.
<script type="module" src="https://unpkg.com/instajax@1.7.1/dist/min.js"></script>
You can install it via npm or yarn and import it in your project:
npm install instajax
Then in your main client-side JavaScript code, just import it:
import 'instajax';
Within your HTML, Instajax will handle links automatically without reloading the page:
<a href="/new-page">Go to new page via instajax</a>
<a href="/new-page" class="skip-instajax">Go to new page without instajax</a>
To customize the error template, you can call the default function with a custom HTML string or URL pointing to an HTML file:
import instajax from 'instajax';
instajax({ errorHTML: '<div class="error">%error%</div>' });
or
instajax({ errorHTML: 'url("/error.html")' });
default({ errorHTML })
Customizes the default error template with a provided HTML string or URL pointing to an HTML file.
FAQs
Instantly move your multi page application navigations to AJAX
We found that instajax 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.
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.