Active Query Builder support area

How to enable CORS in .NET Core or Framework when AQB service is on a different host/port than the webserver?

Last modified:

To enable CORS for Active Query Builder in a .NET Core project, add the following line as the first line to the Configure method in the Startup.cs file:

  	b => b.AllowAnyHeader().AllowAnyMethod().AllowAnyOrigin() 


To enable CORS in a .NET Framework project, add the "Access-Control-Allow-Origin" header via the web.config file as follows:

<clear />
<add name="Access-Control-Allow-Origin" value="*" />

Is this article helpful for you?