ufna / VaRest

REST API plugin for Unreal Engine 4 - we love restfull backend and JSON communications!
https://www.unrealengine.com/marketplace/en-US/product/varest-plugin
MIT License
1.05k stars 289 forks source link

cookie/session not being stored on client in 5.1 #403

Open Baelroak opened 1 year ago

Baelroak commented 1 year ago

Using express-session in node.js for the backend, with the same logic in 5.0 and 5.1 we get different results, req.session is undefined because the session is not being stored on the client. I have seen someone else post about it on the unreal marketplace for the plugin

The only difference here is 5.0 and 5.1 engine.

This is the other post from the UE market I read "Hi I'm not sure this is the plugin's problem. But I want to get your advise or answer. After UE 5.1 update, in my project, it seems it doesn't keep token or session(I think I don't know an exact word) after login. I made a file download process on the project. That is only for logged in users. Of course, this system uses this VaRest plugin. I can log in(server responses correctly), but I'm not able to download files. The server tells me I'm not logged in.

I have same project as UE 5.0 version. It works fine.

So, I don't know how to fix this. Please help me."

Baelroak commented 1 year ago

picture of the same backend and blueprint logic in 5.03 and 5.1 with different results,

as you see the 5.03 client is on the left and has a cookie the 5.1 client does not

image

Baelroak commented 1 year ago

from the response object this appears to not be setting the cookie, it has the same response in 5.03 and 5.1 but console.log the req object there is only cookie in 5.03

image

DezarM commented 1 year ago

I have the same problem.

Baelroak commented 1 year ago

I have the same problem.

seems to be an engine bug I made a unreal bug report already.