OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Angular proxy configuration for API calls

  • Thread starter Thread starter VASANTH N
  • Start date Start date
V

VASANTH N

Guest
When I use the service to fetch url from unsplash its throwing blocked by CORS policy

Below I have shared all files

I have implemented the proxy settings as well seems its not working.

Template file(Html)


angular.json


photoService.ts


app.component.ts


config_file


proxy_file


Error_message


<p>When I use the service to fetch url from unsplash its throwing blocked by <strong>CORS policy</strong></p>
<p>Below I have shared all files</p>
<p>I have implemented the proxy settings as well seems its not working.</p>
<p><img src="https://i.sstatic.net/4hBjryML.png" alt="Template file(Html)" /></p>
<p><img src="https://i.sstatic.net/lG8wzge9.png" alt="angular.json" /></p>
<p><img src="https://i.sstatic.net/AnVQo78J.png" alt="photoService.ts" /></p>
<p><img src="https://i.sstatic.net/rU9IOUuk.png" alt="app.component.ts" /></p>
<p><img src="https://i.sstatic.net/BOnkhc9z.png" alt="config_file" /></p>
<p><img src="https://i.sstatic.net/TxryDtJj.png" alt="proxy_file" /></p>
<p><img src="https://i.sstatic.net/GsYh8oBQ.png" alt="Error_message" /></p>
 

Latest posts

M
Replies
0
Views
1
Marcos R. Guevara
M
Top