diff options
| author | soruly <[email protected]> | 2020-08-09 15:44:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-09 15:44:27 +0800 |
| commit | 65f0feec1129482074b8ae8fff82ce28f40c0fab (patch) | |
| tree | ba56f80d991ba40617404205d575924c12ac179a /api/image-proxy.ts | |
| parent | Update image-proxy.ts (diff) | |
| download | trace.moe-image-proxy-65f0feec1129482074b8ae8fff82ce28f40c0fab.tar.xz trace.moe-image-proxy-65f0feec1129482074b8ae8fff82ce28f40c0fab.zip | |
Update CORS header
Diffstat (limited to 'api/image-proxy.ts')
| -rw-r--r-- | api/image-proxy.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/image-proxy.ts b/api/image-proxy.ts index c53aec2..5377d15 100644 --- a/api/image-proxy.ts +++ b/api/image-proxy.ts @@ -2,7 +2,7 @@ import { NowRequest, NowResponse } from "@now/node"; import fetch from "node-fetch"; export default async (request: NowRequest, response: NowResponse) => { - response.setHeader("Access-Control-Allow-Origin", "trace.moe"); + response.setHeader("Access-Control-Allow-Origin", "https://trace.moe"); const { url } = request.query; const imageURL = Array.isArray(url) ? url[0] : url; if (!imageURL) { |