1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

How to prevent specific static files (e.g., hashed JS files) from being exposed in HTTP...

Discussão em 'Angular' iniciado por saeed Taghizade, Setembro 29, 2024.

  1. i'm using ASP.NET Core as the backend for my Angular application. When I make requests to the server (e.g., using Wget), I notice that hashed JavaScript files like external-module.d1aa0dsdp55.js are being listed and exposed in the request details (in the raw section). These files are automatically generated by Angular, and I want to prevent them from being visible to the client or exposed through HTTP requests.

    I have tried to configure the static file settings in ASP.NET Core, but I haven't been able to hide these files from the request logs. Any suggestions or examples on how to achieve this would be greatly appreciated. Thank you.

    As you can see in the attached screenshot, the JS file appears in the request, but I don't want it to be present there. enter image description here

    Continue reading...

Compartilhe esta Página