Socket
Socket
Sign inDemoInstall

koa-redirect-loop

Package Overview
Dependencies
5
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.5 to 2.0.6

6

index.js

@@ -24,2 +24,5 @@ const Url = require('url-parse');

async middleware(ctx, next) {
const { config } = this;
const { redirect } = ctx;
if (!ctx.session) {

@@ -43,5 +46,2 @@ config.logger.error(

const { config } = this;
const { redirect } = ctx;
ctx.redirect = function (url, alt) {

@@ -48,0 +48,0 @@ let address = url;

{
"name": "koa-redirect-loop",
"description": "Prevent redirect loops with sessions since HTTP referrer header is unreliable and ensures sessions are saved upon redirect",
"version": "2.0.5",
"version": "2.0.6",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",

@@ -6,0 +6,0 @@ "ava": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc