fix(api-gateway): response headers cors issue - fixes #1046
This commit is contained in:
parent
87e50ec941
commit
be668d7d7a
2 changed files with 8 additions and 12 deletions
|
@ -340,13 +340,11 @@ export class HttpServiceProxy implements ServiceProxyInterface {
|
||||||
|
|
||||||
private applyResponseHeaders(serviceResponse: AxiosResponse, response: Response): void {
|
private applyResponseHeaders(serviceResponse: AxiosResponse, response: Response): void {
|
||||||
const returnedHeadersFromUnderlyingService = [
|
const returnedHeadersFromUnderlyingService = [
|
||||||
'access-control-allow-methods',
|
|
||||||
'access-control-allow-origin',
|
|
||||||
'access-control-expose-headers',
|
|
||||||
'authorization',
|
|
||||||
'content-type',
|
'content-type',
|
||||||
'x-ssjs-version',
|
'authorization',
|
||||||
'x-auth-version',
|
'set-cookie',
|
||||||
|
'access-control-expose-headers',
|
||||||
|
'x-captcha-required',
|
||||||
]
|
]
|
||||||
|
|
||||||
returnedHeadersFromUnderlyingService.map((headerName) => {
|
returnedHeadersFromUnderlyingService.map((headerName) => {
|
||||||
|
|
|
@ -435,13 +435,11 @@ export class GRPCServiceProxy implements ServiceProxyInterface {
|
||||||
|
|
||||||
private applyResponseHeaders(serviceResponse: AxiosResponse, response: Response): void {
|
private applyResponseHeaders(serviceResponse: AxiosResponse, response: Response): void {
|
||||||
const returnedHeadersFromUnderlyingService = [
|
const returnedHeadersFromUnderlyingService = [
|
||||||
'access-control-allow-methods',
|
|
||||||
'access-control-allow-origin',
|
|
||||||
'access-control-expose-headers',
|
|
||||||
'authorization',
|
|
||||||
'content-type',
|
'content-type',
|
||||||
'x-ssjs-version',
|
'authorization',
|
||||||
'x-auth-version',
|
'set-cookie',
|
||||||
|
'access-control-expose-headers',
|
||||||
|
'x-captcha-required',
|
||||||
]
|
]
|
||||||
|
|
||||||
returnedHeadersFromUnderlyingService.map((headerName) => {
|
returnedHeadersFromUnderlyingService.map((headerName) => {
|
||||||
|
|
Loading…
Reference in a new issue