O3-5739: Skip XSS request wrapping for web-service paths - #265
O3-5739: Skip XSS request wrapping for web-service paths#265wikumChamith wants to merge 1 commit into
Conversation
XSSFilter no longer wraps requests whose URI contains /ws/, so REST and FHIR request bodies reach the resource layer as raw bytes.
|
This feels like an overreach: https://sonarcloud.io/project/issues?sinceLeakPeriod=true&issueStatuses=OPEN%2CCONFIRMED&pullRequest=265&id=openmrs_openmrs-module-legacyui&open=AZ7OwGPqhsNhAUEFGDCj |
|
So, while I do think the Ultimately, rather than this being something we can just hack-up a quick patch around, I think we need to come up with a principled way to properly re-encode output at the point it's displayed. |
|
So isn't it better to fix this in the frontend? |
Yep. And probably also the legacy UI... |




XSSFilter no longer wraps requests whose URI contains /ws/, so REST and FHIR request bodies reach the resource layer as raw bytes.
https://openmrs.atlassian.net/browse/O3-5739