@@ -220,7 +220,7 @@ if (ENV.NODE_ENV === 'production' && !ENV.CI && cluster.isPrimary) {
220
220
app . use ( '/web-extension/*' , ( req : express . Request , res : express . Response , next : express . NextFunction ) => {
221
221
if ( req . headers . origin === `chrome-extension://${ ENV . WEB_EXTENSION_ID } ` ) {
222
222
res . setHeader ( 'Access-Control-Allow-Origin' , req . headers . origin ) ;
223
- res . setHeader ( 'Access-Control-Allow-Methods' , 'GET, POST, OPTIONS' ) ;
223
+ res . setHeader ( 'Access-Control-Allow-Methods' , 'GET, POST, DELETE, OPTIONS' ) ;
224
224
res . setHeader ( 'Access-Control-Allow-Headers' , 'Accept, Content-Type' ) ;
225
225
}
226
226
next ( ) ;
@@ -229,7 +229,7 @@ if (ENV.NODE_ENV === 'production' && !ENV.CI && cluster.isPrimary) {
229
229
app . options ( '/web-extension/*' , ( req : express . Request , res : express . Response , next : express . NextFunction ) => {
230
230
if ( req . headers . origin === `chrome-extension://${ ENV . WEB_EXTENSION_ID } ` ) {
231
231
res . setHeader ( 'Access-Control-Allow-Origin' , req . headers . origin ) ;
232
- res . setHeader ( 'Access-Control-Allow-Methods' , 'GET, POST, OPTIONS' ) ;
232
+ res . setHeader ( 'Access-Control-Allow-Methods' , 'GET, POST, DELETE, OPTIONS' ) ;
233
233
res . setHeader ( 'Access-Control-Allow-Headers' , 'Accept, Content-Type' ) ;
234
234
res . sendStatus ( 200 ) ;
235
235
return ;
0 commit comments