1

I forgot () on the jQuery val function but received a strange error and am wondering what the cause of that was.

I had the following code:

$('#element').on('focusout', function() {
    $.post("/ajax", 
        {
            email: $('#email').val,
        }
    );
});

and received:

Uncaught DOMException: Blocked a frame with origin "https://example.com" from accessing a cross-origin frame.

It seems like my syntax error must have been executing something else.

This is a static HTML page, no iframe, frame or any content hosted on another domain/subdomain.

user3783243
  • 5,368
  • 5
  • 22
  • 41
  • Does this answer your question? [SecurityError: Blocked a frame with origin from accessing a cross-origin frame](https://stackoverflow.com/questions/25098021/securityerror-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame) – Tân Aug 06 '20 at 12:29
  • @Tân No, I'm not using frames. All on `example.com`. – user3783243 Aug 06 '20 at 12:35

0 Answers0