diff --git a/packages/config-utils/src/proxy.ts b/packages/config-utils/src/proxy.ts index a0eaaa4db..12c2f362e 100644 --- a/packages/config-utils/src/proxy.ts +++ b/packages/config-utils/src/proxy.ts @@ -331,7 +331,8 @@ const proxy = ({ headers: { // Staging Akamai CORS gives 403s for non-GET requests from non-origin hosts Host: target.replace('https://', ''), - Origin: target, + // Origin format is protocol://hostname:port only, remove any trailing slash + Origin: target.replace(/\/$/, ''), }, }), });