Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.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
Xmlhttprequest 跨域无css_Xmlhttprequest_Cross Domain_Less_Github Pages - Fatal编程技术网

Xmlhttprequest 跨域无css

Xmlhttprequest 跨域无css,xmlhttprequest,cross-domain,less,github-pages,Xmlhttprequest,Cross Domain,Less,Github Pages,我试图跨域加载文件,当然,我遇到了跨域问题 XMLHttpRequest cannot load xxxxxxxxxxxxx. Origin yyyyyyyyyyy is not allowed by Access-Control-Allow-Origin. NETWORK_ERR: XMLHttpRequest Exception 101: A network error occurred in synchronous requests. 是的。。。我知道。。。我应该在这些文件到达浏览器之前

我试图跨域加载文件,当然,我遇到了跨域问题

XMLHttpRequest cannot load xxxxxxxxxxxxx. Origin yyyyyyyyyyy is not allowed by Access-Control-Allow-Origin.
NETWORK_ERR: XMLHttpRequest Exception 101: A network error occurred in synchronous requests.
是的。。。我知道。。。我应该在这些文件到达浏览器之前将它们编译成CSS。但这不是一个选择。我也不是那么痴迷于客户机中的0.02s编译时间,不管怎样,这真的让我很烦恼

为了增加问题,我想,至少在短期内,主机说的文件使用。因此,我无法真正控制托管环境(据我所知)

我有没有办法a)让less.js来执行安全的跨域xhr请求,或者b)教github页面如何访问控制允许源代码

我知道这是一个很高的要求,但我想我应该把它说出来


谢谢。

使用代理来处理这些请求怎么样