Sandeep Rajput created OFBIZ-13284: -------------------------------------- Summary: Set default security headers in writeJSONtoResponse and ensure SameSite cookie is returned Key: OFBIZ-13284 URL: https://issues.apache.org/jira/browse/OFBIZ-13284 Project: OFBiz Issue Type: Improvement Components: framework/common Reporter: Sandeep Rajput Fix For: Upcoming Branch
Currently, the writeJSONtoResponse method correctly sends the JSON response, but it does not include the SameSite attribute in the default security headers. As a result, the SameSite cookie is not returned in the browser response. *Expected Behavior:* # writeJSONtoResponse should set default security headers for the response. # SameSite attribute should be correctly applied to all cookies sent in the response. # The browser should receive and respect the SameSite cookie. -- This message was sent by Atlassian Jira (v8.20.10#820010)