ember.js - Content Security Error in connecting to localhost using EmberJS -
i connecting localhost consume json data. however, getting these errors shown below: 
i've tried solution outlined here: violating content security policy directive after ember-cli 0.0.47 upgrade (adding contentsecuritypolicy field in environment.js) , http://discuss.emberjs.com/t/help-resolving-error-report-only-refused-to-load-the-script/6902
and there's still content-security policy error.
side note: it's able json data localhost (status 200 response) it's not able show on ember
i able figure out causing error, first need ensure in contentsecuritypolicy field stored in environment.js following
contentsecuritypolicy: { ... ... 'connect-src': "'self' 127.0.0.1:8000" ... } with no quotes on server url. second error having, followed this: https://github.com/ottoyiu/django-cors-headers
because using same port - bound run problems in cross origin resource usage, needed tweak server settings accommodate same origin resource. hope helped someone.
Comments
Post a Comment