Open Closed

Angular+Core web.config rewrite rules for HTTPS #7143

wizgod created

Greetings Programs!

We are using SSL and when using the web.config in the Angular+Core application, we get an Internal Server Error alert pop up and the debug console shows: Failed to load resource: the server responded with a status of 403 (Forbidden)

I cannot seem to find specific rewrite rules or web.config that will work with the angular application.

Does anyone have a working web.config for HTTPS that they can provide?



1 Answer(s)
  • 0
    wizgod created

    I was able to ignore using the web.config file by adding "useHash: true" in root-routing.module.ts:

    @NgModule({ imports: [RouterModule.forRoot(routes, { useHash: true })], exports: [RouterModule], providers: [] })