From 19ee38b78a579bb70166da30c97f62181579a7a0 Mon Sep 17 00:00:00 2001 From: Osama Sayegh Date: Fri, 30 Apr 2021 13:26:48 +0300 Subject: [PATCH] DEV: Fix `BAD CSRF` errors for admin POST requests when on Ember CLI (#12908) --- .../javascripts/discourse/lib/bootstrap-json/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js index a4e91e10f79..8c5cd665f36 100644 --- a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js +++ b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js @@ -22,12 +22,12 @@ function htmlTag(buffer, bootstrap) { function head(buffer, bootstrap) { if (bootstrap.csrf_token) { - buffer.push(``); - buffer.push(``); + buffer.push(``); + buffer.push(``); } if (bootstrap.theme_ids) { buffer.push( - `` + `` ); }