因为就一个页面,所以使用原生html页面,没有用框架,但用惯了vue,当原生html出现跨域问题时候一脸懵逼,这时候想起大学学的东西可以搭建IIS服务器呀(看来大学学的还是有点用),于是便把本地文件放在本地服务器上,然后使用whistle进行代理,最后访问http://47.112.124.234:7003/picture便可+-+




因为就一个页面,所以使用原生html页面,没有用框架,但用惯了vue,当原生html出现跨域问题时候一脸懵逼,这时候想起大学学的东西可以搭建IIS服务器呀(看来大学学的还是有点用),于是便把本地文件放在本地服务器上,然后使用whistle进行代理,最后访问http://47.112.124.234:7003/picture便可+-+
本文标题:【骚操作】本地html解决跨域问题
本文链接:https://www.haomeiwen.com/subject/mbjxwqtx.html
网友评论