LayoutScriptFileAttribute.Permission property
Permission (or permission expression) required to include the file. Default is "?", e.g. logged-in users, so set it to "*" for a file that anonymous pages like the login page need. The file is left out of the layout for users without it, and a bundle with such a file requires the permission too. For an ES module, the ESM access control (see UseEsmAccessControl) also requires it to serve the module.
public string Permission { get; set; }
See Also
- class LayoutScriptFileAttribute