jeudi 21 janvier 2016

Origin null is not allowed by Access-Control-Allow-Origin for file://?

I am developing a standalone app with deskshell and a sqlite database. But when I try to insert queries stored in an external sql file I get an error message

file:///C:/Users/xxx/AppData/Local/deskshell-apps/test/htdocs/data/test3.sql Origin null is not allowed by Access-Control-Allow-Origin. 

Now I know it has to do with cors crossDomain but how can I fix this. In my case I just need the app on two laptop. I don't like to open chrome with the flag --disable-web-security

Any tips?

Aucun commentaire:

Enregistrer un commentaire