ET-CS
ET-CS

Reputation: 7200

Blocked autofocusing on a form control in a cross-origin subframe

Using Chrome, when I'm trying to change values of an input located in an IFrame of another app on our server, I get an error in Chrome:

"Blocked autofocusing on a form control in a cross-origin subframe."

On production (when the two apps are hosted on the same domain) it's working, but on localhost development I can't make it to work.

I've already tried starting Chrome with the following:

but none worked.

Has anyone has an idea how to make it work? If any change on server side needed, it's also an option.

Upvotes: 23

Views: 26266

Answers (2)

Sofiane Belhadj Kacem
Sofiane Belhadj Kacem

Reputation: 647

  1. Go to chrome://flags
  2. Disable SameSite by default cookies
  3. Relaunch chrome

enter image description here

Upvotes: 4

KhanKudo
KhanKudo

Reputation: 86

For me the issue was a chrome extension ( Dashlane ). I disabled it on that site an it worked. I don't know if this helps you in any way but I had the same issue and this worked for me.

edit: I also had the issue on localhost however haven't tried it yet on server.

Upvotes: 6

Related Questions