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 3c943e1 commit 8e2081dCopy full SHA for 8e2081d
src/httptoolkit-server.ts
@@ -149,7 +149,10 @@ export class HttpToolkitServer extends events.EventEmitter {
149
// Hacky solution that lets us limit the server to only localhost,
150
// and override the port from 4000 to something less likely to conflict.
151
port: { port: 45457, host: 'localhost' },
152
- playground: false
+ playground: false,
153
+ cors: {
154
+ origin: [/https?:\/\/localhost(:\d+)?$/, /\.httptoolkit\.tech$/]
155
+ }
156
});
157
}
158
};
0 commit comments