How to fix the "Permission denied to access property 'elementorFrontend' on cross-origin object" error?

To fix the error, the following entry must be made in the .htaccess file:

<IfModule mod_headers.c>
Header always set X-Frame-Options SAMEORIGIN
</IfModule>