javascript - Security Policy directive: "default-src 'none'" appears in the github online preview of the vue project
世界只因有你
世界只因有你 2017-05-19 10:10:45
0
2
1136

The vue project runs with no problem, and the index.html after the build meeting can be opened directly without any problem.
However, the dist folder, after pushing to github, will be previewed online
http://htmlpreview.github. io/... Something went wrong during online preview. The page will appear for a moment when it is started, and then it will hang.

The reason for the error (because CSP does not know how to solve it, adding mg-src * will not work), is it because I applied the icon font

Page situation

The following is the dist folder of my github. Please help me solve it. I haven’t figured it out for a day. . .

https://github.com/Master-H/v...

世界只因有你
世界只因有你

reply all(2)
迷茫

I don’t know how to solve it, upgrade your website to https?

http://m.blog.csdn.net/articl...

Ty80

Because this is the previewed content of your index file, github will put the file content in text format into the <pre> tag

If your webpage appears when you browse, it is abnormal. Do you expect github to help you set up a website for free? . .

Set up your own server to mount your project.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template