javascript - XMLHttpRequest cannot load - file footer.html, "Error: Failed to execute 'send' on &#3

I have two of the same site. My 1st site isand the 2nd is.1st site is loading properly on every de

I have two of the same site. My 1st site is / and the 2nd is .

1st site is loading properly on every device without any error but the 2nd (www.savantgenius) site is not loading properly in mobile and table devices. It is only loading properly in desktop browser. I have also found 32 console error.

Are there any jQuery issues? And please tell me how to be able to fix it.

I'm getting the "XMLHttpRequest cannot load file:///D:/Work%20File/My%20Work%20File/mY%20Work%20Backup/Sophie/Work%20File/footer.html. Cross origin requests are only supported for HTTP." and "Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///D:/Work%20File/My%20Work%20File/mY%20Work%20Backup/Sophie/Work%20File/footer.html" error, but I don't know what's causing it nor how to fix it.

Please see the screenshot -

I have two of the same site. My 1st site is http://educationaboveall/ and the 2nd is http://www.savantgenius. .

1st site is loading properly on every device without any error but the 2nd (www.savantgenius.) site is not loading properly in mobile and table devices. It is only loading properly in desktop browser. I have also found 32 console error.

Are there any jQuery issues? And please tell me how to be able to fix it.

I'm getting the "XMLHttpRequest cannot load file:///D:/Work%20File/My%20Work%20File/mY%20Work%20Backup/Sophie/Work%20File/footer.html. Cross origin requests are only supported for HTTP." and "Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///D:/Work%20File/My%20Work%20File/mY%20Work%20Backup/Sophie/Work%20File/footer.html" error, but I don't know what's causing it nor how to fix it.

Please see the screenshot - http://prntscr./4fm0d8

Share edited Aug 23, 2014 at 11:26 Krupa Patel 3,3593 gold badges25 silver badges28 bronze badges asked Aug 23, 2014 at 11:20 Zakir HossainZakir Hossain 591 gold badge2 silver badges13 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 2

I Think that you should call it from a http webserver and not like simple file in browser. This mean request a file in a web server like http://localhost/XML/catalog.html not from file:///E:/Projects/XML/catalog.html.

It is as the message says:

cannot load file:///D:/Work%20File/My%20Work%20File/mY%20Work%20Backup/Sophie/Work%20File/footer.html. . 

You are referencing to a file on a Windows boxes filesystem and not in a webservers folder.

Second: you have a CORS-issue (which in this case is caused by the filesystem reference)

Cross origin requests are only supported for HTTP

See MDN for more infos. To solve the issue, you have to configure your webserver to allow such requests. Check your webservers manual.

I had the same problem with my InfluxDB connection and it turns out I did not prepend the URL settings in the datasource with 'http://'. This could be nicer in Grafana, e.g. mentioning there is no protocol defined for accessing the source.

In your case it's clear that you somehow configured Grafana to look for D:\, which is not accessible for your browser. So check your data source URL.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744807508a4594866.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信