We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb0d81 commit f1dd961Copy full SHA for f1dd961
api/index.ts
@@ -12,6 +12,8 @@ export default async (req: Request) => {
12
const { text, ...options }: SsmlOptions & { text: string } = qs.parseUrl(req.url).query as any;
13
14
const res = await fetch(...postMicrosoftSpeech(text, options));
15
+
16
+ const newResponse = new Response(res.body, res);
17
- return cors(req, res.clone());
18
+ return cors(req, newResponse);
19
};
0 commit comments