Skip to content

Commit fe49ced

Browse files
committed
Imrpove prevent-xhr scriptlet; add trusted-prevent-xhr scriptlet
Add support for synchronous `send()` calls. `trusted-prevent-xhr` is essentially the same as `prevent-xhr` except that if the `directive` argument is not a known token, it will be used as is as the response text of the xhr request, whereas `prevent-xhr` returns an empty string when the directive is unknown.
1 parent bcb31db commit fe49ced

File tree

1 file changed

+236
-196
lines changed

1 file changed

+236
-196
lines changed

0 commit comments

Comments
 (0)