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

How/where does window.WordPress.csrfToken gets set? #97

Open
simplenotezy opened this issue Feb 6, 2020 · 2 comments
Open

How/where does window.WordPress.csrfToken gets set? #97

simplenotezy opened this issue Feb 6, 2020 · 2 comments

Comments

@simplenotezy
Copy link
Contributor

I noticed that bootstrap.js gets the CSRF token like this:

window.WordPress.csrfToken

But upon initial review of the code, I don't seem to find where this is set.

@EvanAgee
Copy link
Owner

EvanAgee commented Feb 6, 2020

@simplenotezy this is defined by WordPress on the window object.

@simplenotezy
Copy link
Contributor Author

Hmmm.. Not for me?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants