We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ea99d2 commit dc725b4Copy full SHA for dc725b4
packages/nitro-rpc-client/src/transport/http.ts
@@ -36,7 +36,13 @@ export class HttpTransport {
36
): Promise<unknown> {
37
const url = new URL(`http://${this.server}`).toString();
38
39
- const result = await axios.post(url.toString(), JSON.stringify(req));
+ const result = await axios.post(url.toString(), JSON.stringify(req), {
40
+ headers: {
41
+ "Access-Control-Allow-Origin": "*",
42
+ "Access-Control-Allow-Headers": "*",
43
+ "Access-Control-Expose-Headers": "*",
44
+ },
45
+ });
46
47
return result.data;
48
}
0 commit comments