diff --git a/functions/images/[[catchall]].js b/functions/images/[[catchall]].js index b79269c..7069269 100644 --- a/functions/images/[[catchall]].js +++ b/functions/images/[[catchall]].js @@ -1,8 +1,12 @@ export async function onRequestGet (context) { const { pathname } = new URL(context.request.url) const imageURL = new URL(pathname, 'https://mdleom.com') + const headers = new Headers({ + ...context.request.headers, + 'Host': 'mdleom.com' + }) const imageRequest = new Request(imageURL, { - headers: context.request.headers + headers }) // return fetch(imageRequest)