Skip to content

Commit

Permalink
Merge pull request #21363 from abpframework/AbpMvcLibsService
Browse files Browse the repository at this point in the history
Skip to check libs for `ajax` request.
  • Loading branch information
realLiangshiwei authored Nov 18, 2024
2 parents 6f10ea4 + 9106933 commit 75eb62e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public virtual void CheckLibs(ApplicationInitializationContext context)

app.Use(async (httpContext, next) =>
{
if (!await CheckLibsAsyncOnceAsync(httpContext))
if (!httpContext.Request.IsAjax() && !await CheckLibsAsyncOnceAsync(httpContext))
{
var errorPage = new AbpMvcLibsErrorPage();
await errorPage.ExecuteAsync(httpContext);
Expand Down

0 comments on commit 75eb62e

Please sign in to comment.