Note that there are some explanatory texts on larger screens.

plurals
  1. POno error in vs2008 but in Chrome Error= XMLHttpRequest cannot load file: Cross origin requests are only supported for HTTP
    primarykey
    data
    text
    <p>I'm getting the common Chrome error <strong><em>XMLHttpRequest cannot load file: Cross origin requests are only supported for HTTP.</em></strong> </p> <p>The thing is however, that <strong>I'm authoring my html/jScript stuff in vs2008</strong>. From the IDE I can right click and choose the option "View in Browser". From there, it opens the code up in my default browser (Chrome) and the function i'm using to open my files works perfectly. <strong>It works in Chrome.</strong> If I go to the project folder and attempt to directly open the html file in Chrome, my jScript that tries to open the file fails and gives the error noted.</p> <p>I realize that this is a problem that comes up a lot but after googling and looking on stack I can't say that I've seen this particular flavor of it before. Also, I haven't included any code because the code appears to be functional and not the source of the error (like I said it works just fine in Chrome when deployed through vs2008).</p> <p>I can say for sure that I've done nothing special to the visual studio project. It prompts you with the option to enable web debugging (which I said yes to), but that's about it. The project folder contains an index.html file, about 5 .js files, and a Web.config file generated by the IDE. The Web.config file is <em>kind of</em> big, but I can include it if you think it'd help.</p> <p>Does anyone have any ideas about what vs2008 could be doing to make my html/jScript project work that Chrome isn't doing on it's own? Thank you for your help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload