Skip to content

Commit 6090605

Browse files
committed
minor fix
1 parent dbd0918 commit 6090605

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/pwa-kit-runtime/src/utils/ssr-server/configure-proxy.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {processExpressResponse} from './process-express-response'
1212
import {isRemote, localDevLog, verboseProxyLogging, isScapiDomain} from './utils'
1313
import logger from '../logger-instance'
1414
import {getEnvBasePath} from '../ssr-namespace-paths'
15+
import {SLAS_ENDPOINTS_REQUIRING_ACCESS_TOKEN} from '../../ssr/server/constants'
1516

1617
export const ALLOWED_CACHING_PROXY_REQUEST_METHODS = ['HEAD', 'GET', 'OPTIONS']
1718

@@ -195,7 +196,7 @@ export const configureProxy = ({
195196
appProtocol = /* istanbul ignore next */ 'https',
196197
caching,
197198
siteId = null,
198-
slasEndpointsRequiringAccessToken = /\/oauth2\/logout/
199+
slasEndpointsRequiringAccessToken = SLAS_ENDPOINTS_REQUIRING_ACCESS_TOKEN
199200
}) => {
200201
// This configuration must match the behaviour of the proxying
201202
// in CloudFront.
@@ -380,7 +381,7 @@ export const configureProxyConfigs = (
380381
appHostname,
381382
appProtocol,
382383
siteId = null,
383-
slasEndpointsRequiringAccessToken = /\/oauth2\/logout/
384+
slasEndpointsRequiringAccessToken = SLAS_ENDPOINTS_REQUIRING_ACCESS_TOKEN
384385
) => {
385386
localDevLog('')
386387
proxyConfigs.forEach((config) => {

0 commit comments

Comments
 (0)