Repository navigation
Added
- Added support for single (inline) attachments via the
Attachmenttype. (#768) - Added top-level
Attachmentsaspect to allow usage withoutsap.attachmentsnamespace (#806), i.e.,using {Attachments} from 'com.sap.cds/cds-feature-attachments'.
Security
- Attachment content is now served with
Content-Disposition: attachmentby default (previouslyinline) to mitigate stored XSS (CWE-79) via user-uploaded SVG/HTML payloads (cds-calesi #1263). Applications that require inline previews can opt in by annotatingcontentin their own CDS model — see the "Content Disposition" section in the README. It is recommended to combine this with@Core.AcceptableMediaTypesrestricting inline content to non-scriptable types (e.g.image/jpeg,image/png,application/pdf).
Full Changelog: 1.6.0...1.7.0