Designer online SPA demo
I have tried the designer online, according to the example (https://www.fast-report.com/es/blog/263/show/), but I have got the following error, and it doesn't show me anything, I just suspect that I should redirect port 8000 to 5000, how can I do this?
core.js:15724 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'WebReportDesigner/index.html'
This discussion has been closed.
Comments
Hello!
How to configure an Angular SPA + ASP.NET Core:
In the proxy.conf.json file (if the Angular dev server is running on port 4200/8000 and the ASP.NET Core API is running on port 5000), add proxying for the paths /WebReportDesigner, /_fr, and /api/... to the backend address http://localhost:5000.
On the ASP.NET Core side, make sure that app.UseFastReport(); (and app.UseStaticFiles();) are called BEFORE app.UseSpa(...) / MapFallbackToFile(“index.html”), so that requests to WebReportDesigner/index.html do not fall into the Angular SPA router.