Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding the "envMode" cookie #123

Open
praveen-gopal opened this issue Nov 1, 2023 · 8 comments
Open

Regarding the "envMode" cookie #123

praveen-gopal opened this issue Nov 1, 2023 · 8 comments

Comments

@praveen-gopal
Copy link

praveen-gopal commented Nov 1, 2023

Hi Team,

Could you please help me to understand the usage of "envMode" cookie?

From the file below, we found that the envMode cookie is created, but could not find out where it is being used.

Please refer the attached screenshot.

https://github.com/Worldpay/Worldpay-Magento2-CG/blob/master/view/frontend/templates/webpayment.phtml

envMode_cookie

Thanks
Praveen

@elavarasann
Copy link
Collaborator

Hi Praveen,
Thanks for the update, we will check from our side and let you know. Mean while could you please update about the version details of our plugin and Magento that you are using now. And let us know if your are facing any issue because of this.

Thanks & Regards,
Elavarasan Natarajan.

@praveen-gopal
Copy link
Author

Hi @elavarasann ,

Magento 2.4.5
sapient/module-worldpay : 2.4.5-p10123

Currently we are performing the Qualys scan for our websites and as part of suggestion, we got request to set the httpOnly and secure attributes for envMode cookie, as the attributes are not added.

So, I am trying to understand whether the cookie can be updated or is it required.

@elavarasann
Copy link
Collaborator

Hi Praveen,

Basically this cookie was added to detect the env mode like live or test. Based on that we will switch the endpoint of payment gateway URL. But please give me some more time, I will check with my team and confirm about this.

Thanks & Regards,
Elavarasan Natarajan.

@praveen-gopal
Copy link
Author

OK @elavarasann, Please check and let me know about the cookie details.

@praveen-gopal
Copy link
Author

HI @elavarasann , Did you get a chance to check in with your team about the cookie?

@elavarasann
Copy link
Collaborator

elavarasann commented Nov 9, 2023

Hi Praveen, we have checked from our side, the cookie is used in Samsung Pay. If you are removing this cookie then it will affect in Samsung Pay.

@praveen-gopal
Copy link
Author

Hi @elavarasann, We are using the worldpay payment, if we remove the "envMode" cookie or add the "secure" attribute to the cookie it will affect any worldpay payment related flow / functionality?

@chandan-PS
Copy link
Collaborator

Hi @praveen-gopal , This will only impact Samsung Pay, Payment method and rest all will work smoothly.

We will consider a fix to tis issue in Q1-2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants