We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We can customize the csrf repo to expose the token and send it from the browser:
http.csrf().csrfTokenRepository(withHttpOnlyFalse())
The fetch options should include the header with the cookie value:
<script type="module"> let registrationElement = document.querySelector('webauthn-registration'); registrationElement.registrationStartUrl = "/registration/start"; registrationElement.registrationStartUrl = "/registration/finish"; const csrf = ('; '+document.cookie).split(`; XSRF-TOKEN=`).pop().split(';')[0]; console.log('headers:', registrationElement.fetchOptions); registrationElement.fetchOptions = { ...registrationElement.fetchOptions, headers: { ...registrationElement.fetchOptions.headers, 'X-XSRF-TOKEN': csrf } }; //... </script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We can customize the csrf repo to expose the token and send it from the browser:
http.csrf().csrfTokenRepository(withHttpOnlyFalse())
The fetch options should include the header with the cookie value:
The text was updated successfully, but these errors were encountered: