fix headers
This commit is contained in:
@ -108,7 +108,7 @@ export class StoreController {
|
||||
return prepareStoreToStoreRequest(store);
|
||||
}
|
||||
|
||||
@Options()
|
||||
@Options('')
|
||||
@Header(...ALLOW_ORIGIN_ALL)
|
||||
@Header(...ALLOW_METHOD)
|
||||
@Header(...ALLOW_CREDENTIALS)
|
||||
@ -118,4 +118,15 @@ export class StoreController {
|
||||
async options(): Promise<string> {
|
||||
return '';
|
||||
}
|
||||
|
||||
@Options(':key')
|
||||
@Header(...ALLOW_ORIGIN_ALL)
|
||||
@Header(...ALLOW_METHOD)
|
||||
@Header(...ALLOW_CREDENTIALS)
|
||||
@Header(...CONTENT_LENGTH)
|
||||
@Header(...ALLOW_HEADERS)
|
||||
@HttpCode(204)
|
||||
async optionsByParam(): Promise<string> {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user