File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,10 @@ export class HttpToolkitServer extends events.EventEmitter {
180
180
// and override the port from 4000 to something less likely to conflict.
181
181
port : { port : 45457 , host : '127.0.0.1' } ,
182
182
playground : false ,
183
- cors : { origin : ALLOWED_ORIGINS }
183
+ cors : {
184
+ origin : ALLOWED_ORIGINS ,
185
+ maxAge : 86400 // Cache this result for as long as possible
186
+ }
184
187
} ) ;
185
188
}
186
189
} ;
Original file line number Diff line number Diff line change @@ -70,7 +70,10 @@ export async function runHTK(options: {
70
70
cors : false ,
71
71
https : httpsConfig
72
72
} ,
73
- corsOptions : { origin : ALLOWED_ORIGINS }
73
+ corsOptions : {
74
+ origin : ALLOWED_ORIGINS ,
75
+ maxAge : 86400 // Cache this result for as long as possible
76
+ }
74
77
} ) ;
75
78
standalone . start ( {
76
79
port : 45456 ,
You can’t perform that action at this time.
0 commit comments