Hi -
I'm on AspNetZero Core + Angular (v 3)
I'm trying to get my app to work on IIS, but instead of it running at <a class="postlink" href="http://myapp.example.com">http://myapp.example.com</a>, I'm trying to run it at <a class="postlink" href="http://example.com/myapp/">http://example.com/myapp/</a>
Is this possible? I'm thinking not because I see a lot of URLs leading with / (such as /assets/appconfig.json).
If this isn't, then I'll use host headers. If it IS possible, how might I configure it to work this way? Thanks in advance
I have IIS setup, and my angular app is trying to connect.
In the core side, I'm setting my app settings as such:
"App": {
"ServerRootAddress": "http://example.com/myappapi/",
"ClientRootAddress": "http://example.com/myapp/",
"CorsOrigins": "http://example.com/myappapi/,http://example.com/myapp/"
},
on the angular UI appconfigure.json is:
{
"remoteServiceBaseUrl": "http://example.com/myappapi/",
"appBaseUrl": "http://example.com/myapp/"
}
1 Answer(s)
-
0
Hi,
There is a conversation about this topic. Did you see it? I think, it could help you. #3115@8200fe03-0881-4e1d-8398-3c7215d85985