⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Uncaught SecurityError



FatJoe88
  • profile picture
  • Member

Posted 17 December 2013 - 16:03 PM

Hi,

 

i'm using grocery crud 1.4.1.

On almost every server i use it works fine, but on my client's server when i try to save, edit or delete anything it gives me an error in chrome console:

 

Uncaught SecurityError: Blocked a frame with origin "http://mywebsite.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.


jquery.form.js:328

 

 

what can it be?

 

thanks in advance for any help

peter

 

 

 

 


steevemomo
  • profile picture
  • Member

Posted 18 December 2013 - 05:46 AM

Hello,

 

Some news about his issue?

 

I'm having the exact same issue.

This is working in localhost, but when I move the website to a hosting server I have this error when submitting changes in GROCERY CRUD.

 

thx


steevemomo
  • profile picture
  • Member

Posted 19 December 2013 - 04:58 AM

Hey FatJoe88

 

I think I found the issue, because the iframe is not a singleton and  should have a separate closing tag </iframe> instead of />

 

$io should  be dedclared as

 

var $io = $('<iframe id="' + id + '" name="' + id + '" src="' + s.iframeSrc + '" ></iframe>');

 

instead of

 

var $io = $('<iframe id="' + id + '" name="' + id + '" src="' + s.iframeSrc + '" />');

 

It worked for me. The file is located at assets/grocery_crud/themes/flexigrid/js/jquery.form.js

 

hope this helps


FatJoe88
  • profile picture
  • Member

Posted 21 December 2013 - 16:09 PM

thanks, but still not working for me :( 

 

any other issues?