DEV: Improve Ember CLI's bootstrap logic (PR #12792)

Instead of having Ember CLI know which URLs to proxy or not, have it try the URL with a special header HTTP_X_DISCOURSE_EMBER_CLI. If present, and Discourse thinks we should bootstrap the application, it will instead stop rendering and return a HTTP HEAD with a response header telling Ember CLI to bootstrap.

In other words, any time Rails would otherwise serve up the HTML for the Ember app, it stops and says “no, you do it.”

GitHub

This pull request introduces 1 alert when merging c8310154679dad6cd4ef71f7a29ea4e6c3adfd1c into 2dfa1a267e7f9711baf7def3b9e186d747c2f98a - view on LGTM.com

new alerts:

  • 1 for Superfluous trailing arguments