Manifest: Line: 1, column: 1, Syntax error on Chrome browser

后端 未结 5 2032
暖寄归人
暖寄归人 2021-02-06 05:48

I have a react app that built through npm run build. GET and POST request from the front-end to back-end gives status 200 but I am getting a weird error that may cause all the i

5条回答
  •  情书的邮戳
    2021-02-06 06:31

    VladS answer solved my problem. I was also using AWS Amplify Console for my Angular App.

    You can also have a look at the Content-Type in the response headers of your manifest file. It should NOT be text/html. If it is, you have to change your server configuration to serve the file in the right Content-Type. More info

    Angular names the Manifest-File "manifest.webmanifest". So I also had to go to the "Rewrites and redirects" Page in the Amplify Console and edited the existing entry like so:

    Source address
    
    

    (I added json|webmanifest)

提交回复
热议问题