mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 16:55:00 +08:00
DEV: Fix BAD CSRF
errors for admin POST requests when on Ember CLI (#12908)
This commit is contained in:
parent
3bcce65c8b
commit
19ee38b78a
|
@ -22,12 +22,12 @@ function htmlTag(buffer, bootstrap) {
|
||||||
|
|
||||||
function head(buffer, bootstrap) {
|
function head(buffer, bootstrap) {
|
||||||
if (bootstrap.csrf_token) {
|
if (bootstrap.csrf_token) {
|
||||||
buffer.push(`<meta name="csrf-param" buffer="authenticity_token">`);
|
buffer.push(`<meta name="csrf-param" content="authenticity_token">`);
|
||||||
buffer.push(`<meta name="csrf-token" buffer="${bootstrap.csrf_token}">`);
|
buffer.push(`<meta name="csrf-token" content="${bootstrap.csrf_token}">`);
|
||||||
}
|
}
|
||||||
if (bootstrap.theme_ids) {
|
if (bootstrap.theme_ids) {
|
||||||
buffer.push(
|
buffer.push(
|
||||||
`<meta name="discourse_theme_ids" buffer="${bootstrap.theme_ids}">`
|
`<meta name="discourse_theme_ids" content="${bootstrap.theme_ids}">`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user