Skip to main content
1-Visitor
March 16, 2021
Question

Cookie browser on Home.js

  • March 16, 2021
  • 1 reply
  • 1060 views

Is it possible in Home.js to read the cookies that the browser sends us? If yes, how?

If not, we can instead import node.js libraries for cookie parsing, such as
parsing cookies, for example:


var express = require('express');

var cookieParser = require('cookie-parser');
var app = express();
app.use(cookieParser());

console.log("my cookie" + req.cookies['PHPSESSID']);

 Thank you. 

1 reply

21-Topaz I
March 24, 2021

Hi @LS_9776545 ,

 

what is the goal there? What should be achieved?

I want to point that possibly we can get it working in the browser / Studio preview mode / but I do not believe that this will work on the mobile platform inside the Vuforia View