Openbravo Issue Tracking System - POS2
View Issue Details
0047996POS2Corepublic2021-11-05 07:332022-02-01 08:07
alostale 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
No
0047996: make core2/pos2 CSP ready
Core2 applications should support Content Security Policy (CSP) headers [1].

---
[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP [^]
1. Configure app server to include CSP header by either:

a. setting it in Apache
or
b. setting it in Tomcat (ie. apply attached diff)

2. Run pos2 (in production mode) and ensure everything is working fine
  -> check developers console to ensure no script execution was prevented
1. Remove all inline scripts (if any)
2(?) Decide whether this should mode should be used in CI. Note backoffice does not support CSP. Maybe running in report only mode [1] and ensure no reports are produced.

---
[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only [^]
No tags attached.
depends on defect 0047837 closed alostale index.html has inline scripts 
depends on design defect 0047997 acknowledged Triage Platform Base can't print documents if CSP headers are set 
Not all the children of this issue are yet resolved or closed.
diff tomcat-csp.diff (1,050) 2021-11-05 07:40
https://issues.openbravo.com/file_download.php?file_id=16332&type=bug
Issue History
2021-11-05 07:33alostaleNew Issue
2021-11-05 07:33alostaleAssigned To => platform
2021-11-05 07:33alostaleTriggers an Emergency Pack => No
2021-11-05 07:33alostaleIssue generated from0047837
2021-11-05 07:33alostaleRelationship addeddepends on 0047837
2021-11-05 07:40alostaleFile Added: tomcat-csp.diff
2021-11-05 07:50alostaleRelationship addeddepends on 0047997
2021-12-16 10:30caristuStatusnew => acknowledged
2022-02-01 08:07alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.