ForbiddenError: invalid csrf token on socket.io POST GET req

568
May 01, 2017, at 07:40 AM

i currently struggle with socket.io and csrf protection. I use csurf for CSRF protection. Socket.io POST and GET requests not send csrf tokens. So i actually get a Forbidden Error: Invalid csrf token.

How can i send csrf tokens on socket.io requests?

READ ALSO
How to implement breadth first search to find degrees of separation between two people in javascript

How to implement breadth first search to find degrees of separation between two people in javascript

I tried to use C# but in javascript I couldnt do it(data is in JSON object in property array)Please help! Thank you

225
Openshift node_modules grows out of quota

Openshift node_modules grows out of quota

I have an application in node on OpenShift, after adding some devDependecies into it, particularly babel, and pushin to the repo it stopped to buildThe node_modules folder growing constantly until it reached the limit of quota

350
JavaScript WebSocket OnOpen not called

JavaScript WebSocket OnOpen not called

I can't seem to get this WebSocket connection workingHere is my server:

829
MySQL result from node.js in html, by react.js

MySQL result from node.js in html, by react.js

I make my first web application with nodes and reaccI do sql query in node

357