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

Do not set CSRF Token when no csrf header #10383

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

hinaloe
Copy link
Contributor

@hinaloe hinaloe commented Mar 26, 2019

in the page there is no CSRF header like embed page( @:user/:status/embed ), API Request failed and cannot show content correctly. This PR fix it.

TypeError: Cannot read property 'content' of null
    at api.js:17
    at r (ready.js:3)
    at Object.<anonymous> (api.js:20)
    at d (bootstrap:83)
    at Object.<anonymous> (compose_form_container.js:67)
    at d (bootstrap:83)
    at Module.567 (media_container-af04476b3836bc406b24.chunk.js:1)
    at d (bootstrap:83)

DeepinScreenshot_select-area_20190326151800

@Gargron Gargron merged commit 68f2211 into mastodon:master Mar 26, 2019
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
messenjahofchrist pushed a commit to Origin-Creative/mastodon that referenced this pull request Jul 30, 2021
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

Successfully merging this pull request may close these issues.

None yet

3 participants