Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome transcrypt应该从本地文件系统运行吗?_Google Chrome_Transcrypt - Fatal编程技术网

Google chrome transcrypt应该从本地文件系统运行吗?

Google chrome transcrypt应该从本地文件系统运行吗?,google-chrome,transcrypt,Google Chrome,Transcrypt,我已经安装了Transcrypt,编译了Hello Solar System演示,并按照指示使用python web服务器运行它 然而,我也能够直接从Chrome在Windows10上运行hello.html文件一次。随后它拒绝运行-按钮出现,但单击它们不会更新文本 -------编辑--------- 谢谢-CORS是个问题-浏览器必须连接到web服务器,而不是本地文件系统上的文件。您可能遇到了一个称为CORS的Chrome安全策略。使用python-mhttp.server从html文件所在

我已经安装了Transcrypt,编译了Hello Solar System演示,并按照指示使用python web服务器运行它

然而,我也能够直接从Chrome在Windows10上运行
hello.html
文件一次。随后它拒绝运行-按钮出现,但单击它们不会更新文本

-------编辑---------


谢谢-CORS是个问题-浏览器必须连接到web服务器,而不是本地文件系统上的文件。

您可能遇到了一个称为CORS的Chrome安全策略。使用python-mhttp.server从html文件所在的目录启动Web服务器,并浏览到localhost:8000。在浏览器窗口中,单击html文件,一切都会正常工作