Skip to content

Commit

Permalink
Imrpove prevent-xhr scriptlet; add trusted-prevent-xhr scriptlet
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gorhill committed Oct 3, 2024
1 parent bcb31db commit fe49ced
Showing 1 changed file with 236 additions and 196 deletions.
Loading

0 comments on commit fe49ced

Please sign in to comment.