"No 'Access-Control-Allow-Origin' header is present on the requested resource.The response had HTTP status code 403."

Viewed 1346

I have Angular products services and its calls "http://jsonplaceholder.typicode.com/posts" URL using the HttpClient method.

But, It displays the "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:5700' is therefore not allowed access. The response had HTTP status code 403."

As per my understanding from above error is need to set headers but its just public get API so, I think don't need to set the headers for this.

Thanks in advance.

1 Answers
Related