mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-13 22:37:14 +10:00
fixing unsplash cors issue
This commit is contained in:
+1
-1
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user