diff --git a/src/utils/index.js b/src/utils/index.js index 65f8a0e21..c2f66a95b 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -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; };