Skip to main content
1-Visitor
Mar 16, 2021 12:42 PM UTC
Question

Cookie browser on Home.js

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
Mar 24, 2021 11:53 AM UTC

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

Translate