forked from TrueCloudLab/frostfs-rest-gw
[#73] Add missed CORS
Allow X-Bearer-For-All-Users, X-Bearer-Lifetime headers. Add CORS to /auth/bearer route. Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
b2fdb8c5f8
commit
feaea15aa7
8 changed files with 247 additions and 1 deletions
|
@ -193,6 +193,23 @@ func init() {
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"security": [],
|
||||
"operationId": "optionsAuthBearer",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "CORS",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Headers": {
|
||||
"type": "string"
|
||||
},
|
||||
"Access-Control-Allow-Origin": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/containers": {
|
||||
|
@ -1822,6 +1839,23 @@ func init() {
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"security": [],
|
||||
"operationId": "optionsAuthBearer",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "CORS",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Headers": {
|
||||
"type": "string"
|
||||
},
|
||||
"Access-Control-Allow-Origin": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/containers": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue