Skip to content

Conversation

BraunMatthias
Copy link
Collaborator

No description provided.

The methods are similar to [`req.error()`](#req-error), also accepting the [same arguments](#req-reject), but the messages are collected in `req.messages` instead of `req.errors`, not decorated with stack traces, and returned in a HTTP response header (e.g. `sap-messages`), instead of the response body.

::: warning Avoid Injection Vulnerabilities
Ensure proper validation of the message text if it contains values ​​from user input.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not URL here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node.js seems not to support URLs

@renejeglinsky
Copy link
Contributor

Do we use bad patterns in our docs and should not do that? For example:

image

Or

image

@renejeglinsky
Copy link
Contributor

renejeglinsky commented Sep 16, 2025

Do we use bad patterns in our docs and should not do that? For example:

Checked with SMEs, not critical, can stay as is

@renejeglinsky renejeglinsky merged commit 70baa4b into main Sep 22, 2025
7 checks passed
@renejeglinsky renejeglinsky deleted the messages-security-hint branch September 22, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants