Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
added csrf token to /shots route. fixes #2730
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Apr 25, 2017
1 parent 25d5e22 commit 2c8eb39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/pages/shotindex/server.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
const express = require("express");
const csrf = require("csurf");
const reactrender = require("../../reactrender");
const { Shot } = require("../../servershot");

let app = express();

exports.app = app;

app.get("/", function(req, res) {
app.get("/", csrf({cookie: true}), function(req, res) {
if (!req.deviceId) {
_render();
return;
Expand Down

0 comments on commit 2c8eb39

Please sign in to comment.