fixing unsplash cors issue

This commit is contained in:
Amruth Pillai
2021-10-25 12:45:13 +02:00
parent ba11af887c
commit 7a3626df1c
+1 -1
View File
@@ -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;
};