React Router - Content Security Policy directive: "default-src 'self'

前端 未结 4 1990
自闭症患者
自闭症患者 2021-01-16 05:25

I\'m testing out react router and I created 2 dummy components. The home path works fine, but when I try to go to the /second path, it gives the following erro

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-16 06:12

    I added "--history-api-fallback" to my package.json run scripts

    { "start": "webpack-dev-server --mode development --open --history-api-fallback --hot" }

提交回复
热议问题