0

Let's I want to access data from my local site to www.google.com. It faces CORS restriction. Like the following picture enter image description here

Does it mean that browser deny the user sending the request to Google's server or Google's server deny to response any feedback to the user? CORS restriction restricts JavaScript to fetching the data, so I am a little bit confused.

Charlotte
  • 43
  • 4

1 Answers1

0

CORS doesn't restrict, it does the opposite... it opens up.

Google is preventing your website from directly hitting their site from your site (or any site). Only the owner of the domain (google) you are trying to access can permit this.

Evert
  • 93,428
  • 18
  • 118
  • 189