mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00: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) {
|
||||
if (bootstrap.csrf_token) {
|
||||
buffer.push(`<meta name="csrf-param" buffer="authenticity_token">`);
|
||||
buffer.push(`<meta name="csrf-token" buffer="${bootstrap.csrf_token}">`);
|
||||
buffer.push(`<meta name="csrf-param" content="authenticity_token">`);
|
||||
buffer.push(`<meta name="csrf-token" content="${bootstrap.csrf_token}">`);
|
||||
}
|
||||
if (bootstrap.theme_ids) {
|
||||
buffer.push(
|
||||
`<meta name="discourse_theme_ids" buffer="${bootstrap.theme_ids}">`
|
||||
`<meta name="discourse_theme_ids" content="${bootstrap.theme_ids}">`
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user