Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught SecurityError: Blocked a frame with origin “subdomain.mydomain.com” from accessing a frame with origin “null” #169

Open
ankita-miipl opened this issue Oct 12, 2016 · 1 comment

Comments

@ankita-miipl
Copy link

My Application is developed in Ruby on rails 3.2.1. For uploading an image in model popup it is using remoti-part gem (https://github.com/JangoSteve/remotipart) (gem version 1.2.1).

It is working fine in my local and staging server but not in production. On production when i try to upload an image and click on submit it give me 2 errors

POST http://subdomain.mydomain.com/competitions/750/images net::ERR_CONNECTION_RESET

Uncaught SecurityError: Blocked a frame with origin "http://subdomain.mydomain.com" from accessing a frame with origin "null".
The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "data".Protocols must match.

I try to debug this error and found that it is causing because of iframe. It is using remoti-part - iframe file

https://github.com/JangoSteve/remotipart/blob/v1.2.1/vendor/assets/javascripts/jquery.iframe-transport.js#L178

Send Function is causing the issue for uploading and submitting the request.. If i remove send function from developer console than it is working fine..

@apoyan
Copy link

apoyan commented Oct 12, 2016

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants