I've encounter problem with EmberFire. I'm using 2.6 Ember, 3.0 EmberFire, and Torii for Auth and turning Ember with SSL on. I did everything from Quick Start guide.
I'm getting the given error in Chrome:
Uncaught SecurityError: Blocked a frame with origin "http://ift.tt/28WLTIC" from accessing a frame with origin "https://localhost:4200". Protocols, domains, and ports must match.
Any idea what is missing in my localhost configuration?
# public/crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://ift.tt/1d1B8yI">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" to-ports="*" secure="true"/>
<allow-http-request-headers-from domain="*" headers="*" secure="true"/>
</cross-domain-policy>
# config/environemnt.js
Env.contentSecurityPolicy: {
'script-src': '\'self\' \'unsafe-eval\' apis.google.com',
'style-src': '\'self\' \'unsafe-inline\' fonts.googleapis.com',
'font-src': '\'self\' fonts.gstatic.com',
'frame-src': '\'self\' http://ift.tt/28WLVjK',
'img-src': '\'self\' *.gravatar.com s3.amazonaws.com',
'connect-src': '\'self\' http://ift.tt/1Us4oBa http://ift.tt/1ymbsZQ'
},
Thanks in advance for any help.
Aucun commentaire:
Enregistrer un commentaire