-1
Access to XMLHttpRequest at 'https://www.google.com/' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I got ... enter image description here

Can I import html of other sites using jquery.load into div?

caramba
  • 21,963
  • 19
  • 86
  • 127

1 Answers1

0

The error you are getting is because the webpage you are trying to load is from a different domain than your own.

See CORS

You should use Iframes instead, to load the pages from different domains. Otherwise as target domain to allow your domain in their CORS Policies.

Akash Shrivastava
  • 1,365
  • 8
  • 16