Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

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


User avatar
0
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?

Thanks,

Wg


1 Answer(s)
  • User Avatar
    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: [] })