Browse Source

Merge pull request #12302 from abpframework/DisableABPModule

Disable the abp module for dynamic JavaScript client proxies
pull/12312/head
liangshiwei 4 years ago
committed by GitHub
parent
commit
365edd7b65
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/AbpAspNetCoreMvcModule.cs

6
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/AbpAspNetCoreMvcModule.cs

@ -36,6 +36,7 @@ using Volo.Abp.Http;
using Volo.Abp.DynamicProxy;
using Volo.Abp.GlobalFeatures;
using Volo.Abp.Http.Modeling;
using Volo.Abp.Http.ProxyScripting.Generators.JQuery;
using Volo.Abp.Json;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
@ -185,6 +186,11 @@ public class AbpAspNetCoreMvcModule : AbpModule
endpointContext.Endpoints.MapRazorPages();
});
});
Configure<DynamicJavaScriptProxyOptions>(options =>
{
options.DisableModule("abp");
});
}
public override void PostConfigureServices(ServiceConfigurationContext context)

Loading…
Cancel
Save