Base solution for your next web application
Open Closed

Modifying AbpScripts/GetAll.js #7502


User avatar
0
mkreltszheim created

Hi,

I'm currently working on security fixes to our application that have requested by a third party security company for our client.

One of their requests is that the list of all permisions (found in abp.auth.allPermissions) is not displayed in AbpScripts/GetAll.js on the login page and other unauthenticated pages.

I have tried modifiying Web/Abp/Framework/Scripts/abp.js however this does not seem to affect the output of the generated AbpScripts/GetAll.js file. I can see the ticks querystring on the end of the request, so it is not a caching issue.

How can I modify the output for AbpScripts/GetAll.js?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, please share your ANZ project version and framework.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mkreltszheim created

    Hi ryancyq,

    My ANZ Project version is 6.8.0.0 and the framework is ASP.NET Core MVC + jQuery

    Please let me know how this can be achieved.

    Thank you

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can create a similar Controller like https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.AspNetCore/AspNetCore/Mvc/Controllers/AbpScriptsController.cs in your project and use it instead of AbpScripts/GetAll in the related cshtml file.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)