I have a question about the security issue that occurs when PG payment is linked.

Asked 1 years ago, Updated 1 years ago, 256 views

Hi, everyone.It's been so long since I've tried coding, so I'm asking you a question.

I have a question because there was a problem that I couldn't go to the return page because the login was released after the payment, so there was a security issue that occurred in Chrome. Both chrome edges have a problem of unlogging.

Trying to do it with the least coding There is a thing called modifying using java application, but I am wondering which file to work on. public class DynamicTilesController extends BaseController Is it appropriate to add it to the and implement it?

public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {

 // Add code related to SameSite
    response.setHeader("Set-Cookie","Test1=TestCookieValue1; Secure; SameSite=None");
    response.addHeader("Set-Cookie","Test2=TestCookieValue2; Secure; SameSite=None");
    response.addHeader("Set-Cookie", "Test3=TestCookieValue3; Secure; SameSite=None");

    response.setHeader("P3P", "CP='CAO PSA CONi OTR OUR DEM ONL'");
    return super.handleRequest(request, response);
}

And "Set-Cookie", "Test1=TestCookieValue1; Secure; SameSite=None" Is this correct? Please give me some advice. Thank you.


2022-12-19 13:28

1 Answers

To ask you another question, document.cookie = "safeCookie1=foo; SameSite=Lax"; document.cookie = "safeCookie2=foo"; document.cookie = "crossCookie=bar; SameSite=None; Secure" I thought it was okay to add it to the script like this, but if I put it in the script on each page and work, is it okay not to work in Java?


2022-12-19 13:49

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.