How to configure AQB.Web.virtualDirectory in Angular project.
Using professional edition of Active Query Builder v3.8.
I am trying to integrate AQB with angular project.
My angular project is running on seperate host i.e. localhost:4200 and AQB project is running seperate ASP.NET Core project https://localhost:6001
When we have run the angular project got few errors and AQB not loaded in browser.
Here I need to change the URL to https://localhost:6001/ActiveQueryBuilder/Handler/resources/strings/Auto(with https protocol) instead of using http://localhost:4200/ActiveQueryBuilder/Handler/resources/strings/Auto this link.
For this I have added AQB.Web.virtualDirectory to '/localhost:6001'.
After added virtual directory system auto generates link with http protocol. Its not working for me, as for my server side project its https protocol.
I need this link with https protocol. Could you please tell me how can I manage correct Handler link from client side on my angular project? also do I need to anything on server side?
Hello, sir.
You should use the `AQB.Web.host` instead of virtualDirectory and assign the "https://localhost:6001" value to it.
Chances are you get the CORS error after that. Please refer to this article to fix it: How to enable CORS in .NET Core or Framework when AQB service is on a different host/port than the webserver?