1
axios.get(this.apiURL, {
        headers: {
            'Access-Control-Allow-Origin': '*',
            'Content-Type': 'application/json'
          }
        })
        .then((res) => {
          console.log("Sucess");
        })
        .catch((error) => {
          console.error(error);
        });

I get these issues, If you are experiencing this, Please help me. Issues are followings

Access to XMLHttpRequest at 'https://price-broadcaster-backend.dev.gke.papers.tech/api/observations/' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

SingSong
  • 27
  • 1
  • 1
  • 6

0 Answers0