在我的Web应用程序中,我在开发控制台中出现此错误:

GET /manifest.json 401 (Unauthorized)
manifest.json:1 Manifest: Line: 1, column: 1, Unexpected token.
login:1 Site cannot be installed: the manifest could not be fetched, is empty, or could not be parsed

如果我直接调用浏览器URL中的json文件,没关系,但我的应用程序无法调用此文件,因为nginx返回401错误:

<link rel="manifest" href="/manifest.json">

如何在nginx中允许这个文件?