Skip to content

Commit

Permalink
Merge pull request #1660 from Sitecore/bugfix/JSS-884
Browse files Browse the repository at this point in the history
[node-headless-ssr-proxy] Add sc_site qs parameter to Layout Service requests by default
  • Loading branch information
yavorsk authored Nov 22, 2023
2 parents 6874ec1 + a8a8e90 commit a17621a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Our versioning strategy is as follows:

## Unreleased

### 🐛 Bug Fixes

* `[templates/node-headless-ssr-proxy]` [node-headless-ssr-proxy] Add sc_site qs parameter to Layout Service requests by default ([#1660](https://github.com/Sitecore/jss/pull/1660))

## 21.6.0

### 🎉 New Features & Improvements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ export const config: ProxyConfig = {
setHeaders: (_req, _serverRes, proxyRes) => {
delete proxyRes.headers['content-security-policy'];
},
/**
* Query string parameters to add to Layout Service requests.
*/
qsParams: `sc_site=${siteName}`,
/**
* Custom error handling in case our app fails to render.
* Return null to pass through server response, or { content, statusCode }
Expand Down

0 comments on commit a17621a

Please sign in to comment.