Why teams host the Strapi admin panel on a separate server
An editorial or platform team usually wants the Strapi admin panel on its own host, subdomain or internal network while the API serves the public front end. The split keeps editors on a管理 surface that can be restricted to corporate networks or a VPN, and it keeps the content API on a host sized and exposed for traffic from the front end. In Strapi, the serveAdminPanel setting in config/server.js controls whether the instance builds and serves the admin UI at all. Setting it to false on the API nodes and serving the admin build from a separate deployment is a deployment decision, not a feature toggle. It affects how the admin build is produced, which URL it is compiled against, and how the two hosts exchange cookies and requests, so it has to be designed into the image or build pipeline before the first release.
The Community Edition is licensed under the MIT Expat license, so a split deployment does not change license terms for the core product. Administrator sign-in through an identity provider is a different matter. Strapi's SSO for the admin panel is an add-on for the Growth plan and is included in Enterprise, according to Strapi's self-hosted pricing page. Audit logs and review workflows are Enterprise features. Before committing to a split, confirm with Strapi which plan covers the sign-in model your security team requires, and check the current plan contents on the Strapi self-hosted pricing page, since plan details change.
Plan the split against the plan you buy, not the other way round. Ask your security team whether admin SSO is mandatory, because the SSO documentation limits it to administrator login with an identity provider and treats end-user authentication separately. Then confirm the exact admin URL, CORS origins and cookie behavior for your chosen host layout, and test sign-in on a staging copy that uses the same domains as production. Those checks decide whether the split works at all, and they are far cheaper to run before the admin build is baked into your release artifacts.
Configuration options and when each fits
This table compares the settings that control where the Strapi admin panel is served and how it talks to the API host. Read each row against your target layout (same host, subdomain, separate domain or internal-only admin), then confirm exact key names against the Strapi version you run. The main takeaway is that every move away from a single host adds cross-origin configuration, and that CORS, cookie and SSO settings must agree with each other.
| Setting | When it fits | Main trade-off |
|---|---|---|
| serveAdminPanel | Keep the admin panel served by the API process when one host is acceptable and you want the simplest build and routing. | Admin traffic shares the API's scaling, rate limits and exposure. Turning it off requires a separate host to serve the built admin files. |
| Admin URL setting (admin.url) | Set when the admin is reached on a path or subdomain, so generated links and redirects point to the right place. | A wrong value breaks login redirects and asset paths. Confirm the key name and whether a rebuild is needed for your version. |
| Server URL setting (server.url) | Set to the public API address so the admin knows where to send requests when the admin is on another host. | Behind a reverse proxy, the value must match the public address exactly, or uploads and callbacks may point to internal hosts. |
| CORS origins | Required when the admin on one origin calls the API on another. List only the admin origin, using the exact scheme, host and port. | Overly broad origins weaken the API's cross-origin protection. Each new admin domain needs an update and a retest. |
| Cookie domain and SameSite behavior | Matters when the admin and API share a parent domain (for example, a subdomain layout) and session cookies must travel between them. | Cross-site setups often need SameSite and secure flags that browsers enforce differently. Test sign-in in each target browser. |
| SSO redirect and allowed-domain settings | Needed when administrators sign in through an identity provider and the admin sits on a separate domain from the API. | Strapi SSO applies only to admin login. Redirect URIs must match the admin address exactly, and an identity provider configured for the wrong domain blocks sign-in. |
| Internal-only admin (private network) | Fits when editors reach the admin only through a VPN or internal network and public exposure is not wanted. | Certificates, DNS and SSO callbacks still need reachable names. Confirm how your identity provider reaches the admin from its side. |
How the admin and API hosts talk to each other
The admin panel is a single-page application, so the browser downloads its code from the admin origin and then sends every data call to the API origin. When the two hosts differ, each request is cross-origin, and the browser accepts the response only if the API returns CORS headers that name the admin origin in Access-Control-Allow-Origin. If the admin panel must send a session cookie, the API must also allow credentials and cannot answer with a wildcard origin. Login is therefore a chain of three checks: the login response must set a cookie the browser keeps, the browser must send that cookie back on later API calls, and CORS must allow both exchanges. Test each link separately. Confirm the allowed origin, credential handling and preflight responses in your project's CORS settings before you test login.
Cookie scope is where a split host most often breaks. A cookie set by the API domain belongs to that domain. When the admin panel runs on an unrelated domain, the browser treats the API cookie as a third-party cookie in the context of the admin page. Browsers have been tightening third-party cookie handling, and the usual symptom is a login that succeeds, followed by a session that disappears on the next page load. The outcome depends on browser version, privacy settings, managed browser policies and whether the browser partitions or blocks third-party storage. Verify it in testing instead of relying on documentation alone. Build a test matrix from the browsers your editors actually use, include private windows, and record which combinations keep a session across reloads and after a restart.
The SSO restriction on unrelated domains decides whether a split layout can support corporate sign-in. Strapi SSO signs administrators in through an identity provider, so the admin panel must complete a redirect and callback flow with hosts that the identity provider and Strapi both accept. The Strapi SSO documentation describes restrictions that apply when the admin panel and the server sit on unrelated domains, so check them against your planned hostnames before you choose a topology. Decide this early. If SSO is required, a layout on a shared parent domain may be the design to test, and an unrelated-domain split may have to be dropped. Also confirm the plan. The self-hosted pricing page lists SSO as an add-on for Growth and includes it in Enterprise, so the license cost depends on which plan you need.
Browser requests reach the admin, API and identity hosts in a fixed order
The diagram starts in the editor's browser, which loads the admin panel from the admin host. The panel then sends API calls to the Strapi API host with credentials, so the CORS and cookie settings on both hosts decide whether those requests are accepted. When an editor signs in through SSO, the browser is redirected to the identity provider, and the callback returns to the API host. Check that the admin and API hostnames match your configured URLs, and that the identity provider accepts the API callback address. The boundary marks the internal network, which the identity provider sits outside of.
Requests from the editor's browser to the admin, API and identity hosts.
Setting up a split admin panel step by step
This sequence moves the Strapi admin panel to its own origin while the API stays on a separate host, and each step ends with a check that proves the split works before go-live. Follow it in order, because later steps depend on the URLs fixed in earlier ones.
Decide the host layout and plan tier
Your team fixes the API hostname, the admin hostname, and whether the admin panel sits on a subdomain or a separate registrable domain. Record both origins in a short design note, and confirm with your identity team whether SSO is needed, since Strapi's SSO is an add-on on Growth and included in Enterprise under the self-hosted pricing page. Done when the note lists each origin, its TLS certificate owner, and the plan tier, and someone outside the build team has signed off on it.
Build the admin panel with the correct admin URL
Set the admin URL and the API URL that the admin bundle will use before running the admin build, because the admin panel's API target is baked in at build time. Your build engineer runs the production admin build on a clean checkout and deploys the output to the admin host with serveAdminPanel left enabled only on the server that should serve it. Check: load the admin origin in a browser, confirm the network requests point to the API origin you recorded in step one, and confirm no request still points to localhost.
Configure server URL and proxy headers
Set the public server URL and trust-proxy behavior on the API host so Strapi builds correct absolute links and reads forwarded protocol and host headers from your reverse proxy. Your platform engineer updates the proxy so it forwards the original host and scheme to the API. Check: call an API endpoint through the public hostname and confirm that the returned media URLs and any generated links use the public HTTPS origin, not an internal address or port.
Set CORS origins to the admin origin only
Add the admin origin to the CORS allowlist on the API and remove wildcards and any origins that are not the admin panel or known front ends. Your security engineer reviews the list against the design note from step one. Check: send a preflight request from the admin origin and confirm the response allows it, then send the same request from an unlisted origin and confirm the browser is refused. Keep the list short, because every listed origin can call the API from a browser.
Configure cookies for the chosen domains
Set cookie scope and SameSite behavior so the admin session cookie is sent from the admin origin to the API origin. If the two hosts are on different registrable domains, cross-site cookies must be allowed with secure transport, and your team must confirm that current browser policies still permit the session flow you chose. Check: sign in from the admin origin, open the browser developer tools, and confirm the session cookie is set with the Secure flag and is returned on the next API request.
Register the SSO redirect URI if used
If you enable admin SSO, add the exact callback URL for the API to your identity provider application, including scheme, host, port and path, and set the post-login redirect to the admin origin. Strapi SSO only covers administrator login, so end-user sign-in is configured separately. Check: start a sign-in from the admin origin, complete the identity provider prompt, and confirm you land back in the admin panel with an administrator session and no redirect mismatch error.
Verify login, refresh, logout and API calls
Run a scripted test pass from the admin origin: sign in, reload a deep link inside the content manager, make a content API call, sign out, and confirm the session is gone. Your QA engineer records the results and retests after any change to CORS, cookies or proxy settings. Check: every action succeeds on the first attempt, a reload keeps the session, a logout returns the user to the login screen, and a request made after logout is refused. Keep the test record with the release evidence.
Security considerations for a split admin panel
Serving the admin panel from its own host changes who can reach it, which origins the API trusts and which cookies travel where. The cards below cover the risks that follow from that split, with the checks to run before the admin host is exposed to editors or the public internet.
Overly broad CORS origins
Every origin listed in the API's CORS configuration can call the API from a browser with credentials. A wildcard or a loose pattern such as a whole parent domain lets unrelated sites send requests on behalf of a signed-in editor. Limit the list to the exact admin origin, including scheme and port, and confirm the setting in your production environment file rather than relying on the defaults that work in development.
Strapi SSO docsCookies shared with sibling subdomains
If the admin and API sit on sibling subdomains, cookie scope decides whether a compromised neighbor app on the same parent domain can read or replay session cookies. Check the domain attribute, the SameSite setting and whether the secure flag is enforced over HTTPS. Test by logging in on the admin host and inspecting cookies from another subdomain you control.
Admin login reachable from the internet
The admin login page is a high-value target, so a public address for it deserves the same review as the API itself. Consider restricting the admin host by network path, VPN or an IP allowlist at the reverse proxy, and enforce rate limits there. Confirm which paths the proxy forwards and that the admin host serves no content that the public API should not expose.
SSO lock-out and local login fallback
Strapi SSO only covers administrator login through an identity provider, and it can lock local login out once SSO is active. Before turning that setting on, keep a tested break-glass path, such as a separately documented administrator account stored in your secrets manager. Confirm the default role assigned on auto-registration so a new corporate account does not receive more access than intended.
Strapi SSO docsSecrets and URLs baked into the bundle
The admin bundle is built as static files, so any value compiled into it is readable by anyone who loads the page. Keep API tokens, signing keys and database credentials out of admin build variables, and check that the admin URL and API URL set at build time match the production hosts. A wrong URL baked into a build means a rebuild, not a runtime setting change.
Audit logging is an Enterprise feature
Audit logs are listed as an Enterprise feature in Strapi's self-hosted plans, so a Community or Growth deployment does not provide them out of the box. If admin access must be traceable for a regulator or internal audit, confirm the plan with Strapi before design starts and decide where access events will be retained if you use a different logging path. Ask the vendor for the current feature list because plan contents change.
Self-hosted pricingQuestions teams ask before splitting the admin panel
Can our own team split the Strapi admin panel onto a separate host?
Yes, a team with Node.js and Strapi experience can do it in-house, and the change itself is mostly configuration: building the admin panel with the admin URL set, pointing the API at its own host, and allowing the admin origin in CORS and cookie settings. The harder part is usually the surrounding work: a DNS record, a TLS certificate, a reverse proxy rule and a test pass across every environment. If your team has not run Strapi behind a proxy before, plan time to verify forwarded headers and cookie behavior in staging before production. A partner is most useful when the split has to be reviewed by security or compliance staff who need written evidence of each setting.
What drives the effort of hosting the admin panel separately?
Effort depends on how many hosts are involved, how many environments must match, and whether single sign-on is part of the design. Each additional host adds a DNS entry, a certificate, a proxy route and a CORS allowance to maintain. Environment count matters because the admin URL is often baked in at build time, so each environment may need its own admin build. SSO adds identity provider redirect URIs, session settings and a test of the login flow across both hosts. Ask any provider to list each host, each environment and each identity integration in the written scope so the quote reflects them.
How long does a split take with one host or several hosts?
No fixed duration can be given here, because the answer depends on the number of hosts, environments and identity integrations and on how much of the proxy and certificate setup already exists. A single admin host with no SSO is a narrow change in an environment that already has automated builds and DNS management. Several hosts, multiple environments and SSO add review cycles, identity provider configuration and cross-host login testing. Ask for a timeline tied to a written list of hosts and environments, and confirm whether the schedule includes a staging soak period before production cutover.
Does Strapi Community Edition support SSO for the admin panel?
Strapi SSO for administrator login is an add-on for the Growth plan and is included in Enterprise, so it is not part of the free Community Edition. Community Edition is free under the MIT Expat license with unlimited users, but single sign-on for the admin panel requires a paid plan. The Growth plan is listed at 45 US dollars per month including 3 users, plus 15 dollars per extra user, and the SSO add-on is priced on top of that. Confirm current plan terms and SSO pricing on the Strapi self-hosted pricing page before budgeting, because listed prices can change.
What does the split need from our network and DNS team?
The network and DNS team usually owns the admin hostname, its DNS record, the TLS certificate, the load balancer or reverse proxy route and any firewall rules that restrict who can reach the admin host. They also need to confirm that the admin origin can reach the API host and that the API host accepts that origin. Ask them to review whether the admin host should be reachable from the internet, from a VPN or only from an internal network, since that decision affects the access model and the audit trail. Agree on change windows and rollback steps before the work starts.
What breaks when the admin URL changes later?
Changing the admin URL later can break login sessions, CORS allowances, cookie domains, SSO redirect URIs and any bookmarks or links that editors use. If the admin build embeds the URL, a new admin build is needed for each environment. Existing sessions may be invalidated, and identity providers must be updated with the new callback address. Keep a checklist of every place the URL appears, including proxy rules, environment files, CI pipeline variables and the identity provider, and test sign-in on each environment after any change.
Which settings should our security team review after the split?
Security reviewers should check the CORS allowlist, cookie domain and secure flags, forwarded header trust, the admin host's exposure, TLS configuration and whether SSO is enforced or local login remains available. Review who can reach the admin host and how administrator accounts are provisioned and removed. Ask for a written list of final values so each setting can be compared with your security baseline. Keep the list in version control so later changes are visible to reviewers.
How often do we need to revisit the split after a Strapi upgrade?
Strapi 5 minor releases ship roughly weekly, for example v5.56.0 on September 30 and v5.57.0 on October 7, 2026, so the admin build and its configuration should be retested on a regular cycle. Upgrades can change admin build behavior or cookie handling, so each upgrade should include a sign-in test across both hosts in staging. Plan a recurring review of the admin configuration, not only a one-time setup. Ask any provider whether ongoing upgrades and testing are covered by a retainer or billed per change.
Limits to confirm in your environment
Splitting the admin panel from the API adds moving parts that the single-host setup hides. The cards below cover the version, runtime, build, browser, plan and proxy limits to confirm before you change any URL. Check them together, because a fix in one area often changes the result in another.
Strapi version and Node.js runtime
Confirm which Strapi release you run and that your Node.js version is on Strapi's supported list. Strapi 5 runs only on Active or Maintenance LTS Node.js versions, so an end-of-life runtime blocks upgrades and security patches even when the admin build works. Record the exact Strapi and Node.js versions in your environment inventory before you change the admin host, and check the Strapi GitHub releases page for the current minor line you plan to target.
Installation requirementsAdmin build per URL change
Determine whether your admin build bakes the admin URL into the bundle at build time. If it does, every change to the admin host or path needs a new admin build and a deployment, not just a restart with a new environment variable. Ask your team to test this on a staging copy of the production image so the rebuild step appears in the release plan before the cutover date.
Cookie behavior across domains
Test how browsers store and send session cookies when the admin panel and the API sit on different hostnames. Check the cookie domain, the SameSite and Secure attributes, and whether your CORS allowlist includes the exact admin origin with scheme and port. Run the login flow in each browser your administrators use, since a mismatch often appears only as a silent logout after sign-in.
SSO available in your plan
Confirm that your Strapi plan includes single sign-on for administrators before you design the split around it. In self-hosted plans, SSO is an add-on for Growth and included in Enterprise, and it covers only admin login, not end-user authentication. Also confirm that SSO redirects and the identity provider's allowed callback URLs match the separate admin host.
Strapi SSO docsReverse proxy header handling
Verify that the proxy in front of each host forwards the original host, protocol and client address to Strapi, and that Strapi trusts those headers only from that proxy. Incorrect forwarding produces wrong redirect URLs, mixed-content requests and failed secure cookies. Test a login, an upload and a logout through the production proxy path, not only through a direct connection to the container.
Strapi 4 end of life
If you still run Strapi 4, plan the move to Strapi 5 before splitting the admin panel, because the admin changes would then be built on a release that no longer receives updates. Strapi v4 reached end of life on April 30, 2026, and its final release is 4.26.2. Back up the database first, since the upgrade docs state that downgrading is not supported.
v4 to v5 migration docsWhat a split costs to build and keep running
A split admin panel costs more than the initial configuration, because part of the work recurs with every Strapi release. The one-time work includes setting server.url and the admin URL settings, configuring CORS and cookie behavior for the separate admin origin, issuing and wiring certificates for both hosts, creating the DNS records, and testing login, uploads and API calls from the admin origin. If single sign-on is in scope, the identity provider application, redirect URIs, role mapping and the local login lock-out also need to be built and tested. Each of these is a separate piece of work, and a partner will usually price them as separate line items in the written scope so you can see which ones your own team already covers.
The recurring cost sits in the upgrade path and in admin rebuilds. Strapi publishes minor 5.x releases frequently, so the admin bundle changes often, and each change to the admin build is a step your pipeline has to repeat on the split host, with a smoke test of login and content editing afterward. Plan for a retest of CORS, cookies and SSO after every Strapi upgrade, not only after the first deployment. For plan choice, the self-hosted pricing page lists Growth at 45 US dollars per month including 3 users, with 15 dollars per extra user, and SSO as an add-on on that plan. Enterprise is custom priced and includes SSO. Confirm current figures on the Strapi self-hosted pricing page before budgeting. DeployOpen does not publish prices. A quote follows from the written scope, so ask for the one-time build, the testing, the retainer terms for upgrades and the assumptions about your identity provider and DNS ownership.
Verifying the split before go-live
This sequence confirms that the admin panel on its own host can sign in, keep sessions, handle media and previews, enforce SSO, and reject requests from origins you did not list. It produces a signed-off test record that QA and security can both review before the admin URL reaches editors.
Confirm the admin and API URLs in a staging build
Before testing behavior, check that the admin URL, the server URL and the list of allowed origins in the staging environment match the planned production hostnames exactly, including scheme and port. QA or the platform engineer reads the effective values from the running configuration and from the built admin bundle, not from the intended design. The step is done when both values are recorded in the test log and any mismatch is fixed and rebuilt.
Run cross-origin login from the admin host
A tester opens the admin panel on its separate hostname in a clean browser profile and signs in with a local administrator account. The tester checks that the login request reaches the API host, that the browser accepts the response, and that the admin dashboard loads without console errors about CORS or blocked cookies. The step closes when the login succeeds in at least two browsers and the network log shows the expected origin on each request.
Verify session persistence after refresh and restart
With the admin session active, the tester reloads the page, opens a new tab on the admin host, and closes and reopens the browser. The session should persist where the configured lifetime allows and expire where it should. The tester also checks the cookie attributes in developer tools, such as domain, path, secure and same-site settings, and records them. The step is done when the session behavior matches the agreed policy and the cookie attributes are written down.
Test media uploads and asset URLs across hosts
An editor uploads an image, a file and a large file within the configured size limit from the admin host. The tester confirms the upload request succeeds, the media library shows the asset, and the public URL returned by the API loads from the expected host without mixed-content warnings. The tester also checks that an upload over the limit fails with a clear error. The step closes when each upload type has a recorded result.
Check preview links and front-end redirects
Where preview is enabled, the tester opens a draft entry from the admin panel and follows the preview link to the front end. They confirm the preview loads the draft content, that the link carries only the intended token, and that it expires or cannot be reused once the entry is published or unpublished. The step is done when preview works for at least one content type and the link behavior is recorded.
Validate SSO sign-in and the forced lock-out
If SSO is in scope, the tester signs in through the identity provider with a test user who has the default role, then confirms the assigned role and permissions. Next, with local login locked out as configured, they confirm that the local login form is unavailable to ordinary administrators while a break-glass path works only as documented. The step is done when the SSO path, the role assignment and the lock-out result are all recorded with screenshots and timestamps.
Run negative tests from unlisted origins
A security engineer sends login, API and media requests from an origin that is not in the allowed list, using a test page on another domain and direct requests with a forged Origin header. The expected result is that the browser blocks the cross-origin response and the API does not return credentials or sensitive data to that origin. The engineer also confirms that the admin panel cannot be embedded in an unlisted frame where that matters. The step closes with a saved request and response log for each rejected case.
How DeployOpen scopes and delivers a split admin panel
DeployOpen plans the admin panel host, the API host, the public URL settings and the cookie and CORS rules together before any build starts. The work is delivered inside your own infrastructure, with the admin panel build, proxy configuration and login behavior tested and documented for your security and platform teams.
How we scope
- Written scope fixes which admin hostname, API hostname and proxy layer are in play before any build starts
- Scope records whether admin login uses local accounts, SSO through an identity provider, or both
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins
- Scope lists which Strapi edition and plan features, such as SSO, the chosen setup depends on, for you to confirm
How we build
- Admin panel build settings and the public admin URL are set and tested in your build pipeline
- CORS origins, cookie domain and secure cookie flags are configured and checked against each hostname pair
- Forwarded headers and TLS termination are verified at the proxy so Strapi generates the correct URLs
- Login, token refresh, logout and SSO redirects are tested from a browser on each host combination
How we hand over
- Written documentation covers every URL, CORS origin, cookie setting and proxy rule that was changed
- Configuration is kept in version control so changes to hostnames or environments can be reviewed
- Test results and a list of open items are delivered so your team can repeat the checks independently
- Handover includes the runbook steps for adding a new environment or rotating a certificate
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover
- Retesting follows any Strapi upgrade, proxy change or move to a different domain
- Support covers updates to the admin build when you change hostnames, branding or identity settings
- Ask for the retainer scope, response expectations and change process in your written quote

