Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reveal sensitive field if part of an AJAX request #5209

Closed
wants to merge 1 commit into from

Conversation

bennothommo
Copy link
Contributor

The sensitive field currently does not work with AJAX requests correctly if it is unrevealed - it sends the hidden placeholder instead of the real value with AJAX requests.

This change allows the sensitive field to intercept AJAX requests on elements within the same form, and reveals the field. Once revealed, it then replays the AJAX request on the original element, which should then pick up the sensitive field's true value in the form data.

The sensitive field currently does not work with AJAX requests correctly if it is unrevealed - it sends the hidden placeholder instead of the real value with AJAX requests.

This change allows the sensitive field to intercept AJAX requests on elements within the same form, and reveals the field. Once revealed, it then replays the AJAX request on the original element, which should then pick up the sensitive field's true value in the form data.
@LukeTowers
Copy link
Contributor

@bennothommo could you provide an example of why you need the data present in an AJAX request?

@bennothommo
Copy link
Contributor Author

Closing in favour of #5212.

@bennothommo bennothommo deleted the wip/reveal-sensitive-on-ajax branch July 15, 2020 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants