mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:22:40 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user