I am using jcef to load my offline html+javascript pages in chrome browser. Currently i start getting a problem when i try to load a properties file using jquery-i18N plugin.
this is how i am loading properties file in javascript:
- Code: Select all
jQuery.i18n.properties({
name: 'messages_nn_NO',
path: '../../../',
mode: 'map'
});
and then i am getting this console message
- Code: Select all
"XMLHttpRequest cannot load file:///home/adminuser/code/hp_healthbrowser/healthbrowser-linux/target/classes/messages_nn_NO.properties?_=1440579166487. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.", source: file:///home/adminuser/code/hp_healthbrowser/healthbrowser-linux/target/classes/web/partials/dialpad/phone.html?callType=outGoingCall (0)
Is there any cef settings from where i can set cross domain origin or make it disable for local files loading.