alan-turing-institute / simulate-frontend

Simulate frontend application.
http://simulate.readthedocs.io
0 stars 1 forks source link

Add HTTPS redirect to web.config #87

Closed martintoreilly closed 6 years ago

martintoreilly commented 6 years ago

We tried adding the extension in the "Easy, no code way" section of this guide. However, this appears to attach to a deployment slot.

Rather than add the extension to all deployment slots, we are adding a rewrite rule to the web.config file. We have placed this rule before the Angular SPA routing rewrite rule and set stopProcessing to false, so the Angular rule should still get processed.

We could have combined both into a single rule by prepending https:// to the Angular rule, but I want to ensure we keep the HTTPS redirect regardless of how the app develops.