Error: Forbiddenat SendStream.error

后端 未结 1 1874
忘了有多久
忘了有多久 2021-01-21 00:18

When adding static folder app.use(express.static(__dirname + \'/static\')); I am getting error Error: Forbiddenat SendStream.error

相关标签:
1条回答
  • 2021-01-21 00:45

    Known issue https://github.com/visionmedia/express/issues/1229.

    Quick fix is to use app.use(express.static( __dirname + '\\static'));

    0 讨论(0)
提交回复
热议问题