Commit b518672
Strip stack traces from RPC error responses (OAC-05)
Remove the `stack` property from serialized error objects in
RpcState.reply() to prevent internal file paths, line numbers,
and code structure from leaking to callers via postMessage or
URL-encoded redirect responses.
The full error (including stack) is still logged via console.debug
for debugging purposes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2b42a9d commit b518672
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
0 commit comments