Cross-domain operation form form (js)

Google plug-in has been developed to automatically fill in the login form through the plug-in, but a cross-domain request error occurs when manipulating elements in the iframe form

related codes

the following is the input element in the get login box,
var username = login.contentWindow.document.querySelector ("- sharplogin_name");
var password = login.contentWindow.document.querySelector ("- sharppassword");
var submit = login.contentWindow.document.querySelector ("- sharpsubmit_btn");

what result do you expect? What is the error message actually seen?

the following is an error
clipboard.png

Jun.25,2021
Menu