DEV: Don't force Ember CLI for proxied requests made by Ember CLI (#12909)

DEV: Don’t force Ember CLI for proxied requests made by Ember CLI (#12909)

diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index adad4c6..000cd89 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -95,7 +95,7 @@ class ApplicationController < ActionController::Base
   end
 
   def ember_cli_required?
-    ENV['NO_EMBER_CLI'] != '1' && Rails.env.development?
+    Rails.env.development? && ENV['NO_EMBER_CLI'] != '1' && request.headers['X-Discourse-Ember-CLI'] != 'true'
   end
 
   def application_layout

GitHub sha: 6f8413fd

This commit appears in #12909 which was approved by CvX. It was merged by OsamaSayegh.