Skip to content

Commit

Permalink
fixing unsplash cors issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AmruthPillai committed Oct 25, 2021
1 parent ba11af8 commit 7a3626d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const unsplashPhotoRequestUrl =
'https://source.unsplash.com/featured/400x600';

export const getUnsplashPhoto = async () => {
const response = await fetch(unsplashPhotoRequestUrl);
const response = await fetch(unsplashPhotoRequestUrl, { mode: 'no-cors' });
return response.url;
};

Expand Down

0 comments on commit 7a3626d

Please sign in to comment.