[dba-Tech] Google Chrome: Error 'Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.'

Salakhetdinov Shamil mcp2004 at mail.ru
Sat Jun 6 11:39:30 CDT 2015


 Hi Jim --

As I have noted FireFox works well with the same html + js-es + json opened directly from local disk  using File -> Open.

Have a look:  http://tinyurl.com/oxpdbf6

But I wanted to have Google Chrome to be working as smoothly as FF (or Safari). I don't even mention IE... 

Thank you.

-- Shamil

Saturday, June  6, 2015 10:08 AM -06:00 from Jim Lawrence <accessd at shaw.ca>:
>Hi Shamil:
>
>When I run into similar problems it is because some of the required files or a library are not in the "path".
>
>Jim
>
>----- Original Message -----
>From: "Salakhetdinov Shamil" < mcp2004 at mail.ru >
>To: "Discussion of Hardware and Software issues" < dba-tech at databaseadvisors.com >
>Sent: Saturday, June 6, 2015 4:26:49 AM
>Subject: [dba-Tech] Google Chrome: Error 'Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.'
>
> Hi All --
>
>I'm working through TypeScript EdX course using Sublime/Gulp and while working on/running this course Module 5 assessment html + js I'm getting the following errors:
>
>
>1. XMLHttpRequest cannot load file:///E:/Typescript/Learning/Module5/src/JSON/recipeTypes.json. 
>Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
>2. Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///E:/Typescript/Learning/Module5/src/JSON/recipeTypes.json'. It's clear what the errors mean - what is unclear is how to make 'cross origin request' allowed for 'file:' protocol for Google Chrome -  a kind of local HTML app running without a web server?
>
>FYI: when opening the same assessment .html locally in FF 38.01. it works without any complains: .js executes, .json files loaded and parsed, drop-down boxes filled with data from .json files etc.
>
>Thank you.
>
>-- 
>Салахетдинов Шамиль
>_______________________________________________
>dba-Tech mailing list
>dba-Tech at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/dba-tech
>Website:  http://www.databaseadvisors.com
>
>_______________________________________________
>dba-Tech mailing list
>dba-Tech at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/dba-tech
>Website:  http://www.databaseadvisors.com



More information about the dba-Tech mailing list