DEV: Add CSRF meta tags to pages served by Ember CLI server (#11993)

Signed-off-by: OsamaSayegh <asooomaasoooma90@gmail.com>
This commit is contained in:
Osama Sayegh
2021-02-06 01:18:29 +03:00
committed by GitHub
parent ded0f5b4e5
commit f700e318a4
2 changed files with 11 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class BootstrapController < ApplicationController
preloaded: @preloaded,
}
bootstrap[:extra_locales] = extra_locales if extra_locales.present?
bootstrap[:csrf_token] = form_authenticity_token if current_user
render_json_dump(bootstrap: bootstrap)
end