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

csrf-xhr

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csrf-xhr - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

2

csrf-xhr.js

@@ -30,3 +30,3 @@ (function(xhr) {

xhr.open = function(method, url, async) {
xhr.open = function(method, url) {
// If we're on http://example.com and the URL starts with

@@ -33,0 +33,0 @@ // http://example.com then we're sending to a local origin.

{
"name": "csrf-xhr",
"version": "0.0.1",
"version": "1.0.0",
"description": "Automatically add Rails CSRF tokens into XMLHttpRequest headers.",

@@ -5,0 +5,0 @@ "main": "csrf-xhr.js",

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