How to disbale Basic-Auth for a single asset file?


We have enabled Basic-Auth for one of our deployment context.

But we need to disable the authentication for one of our static assets. Here is a snippet from netlify.toml for our static asset.

  for = "/.well-known/assetlinks.json"
    Content-Type = "application/json"

Is there a way to achieve this by providing a header in the configuration?

Any help would be appreciated.

Thank you

Hi @joelr-cm,

If you add a header rule for the entire site like /*, that rule will cause any other rule to be ignored. So, the above configuration would not work.