-1

Access to fetch at 'https://api.pexels.com/v1/search?query=king&page=1&per_page=15' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Give me some solution

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
  • 1
    Do some research before asking. This problem and it solutions are widely documented online. – Dennis Hackethal Aug 09 '23 at 08:04
  • If Googling the error message returns a question with over 3000 votes, then you should take this as a sign that you need to work on your researching and self-resolving skills. – Rory McCrossan Aug 09 '23 at 08:08

0 Answers0