-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
issue: bugIssue reporting a bugIssue reporting a bugseverity: highIf it breaks the basic use of the productIf it breaks the basic use of the productsource: core:adminSource is core/admin packageSource is core/admin packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community members
Description
Bug report
Required System information
- Node.js version: v18.17.0
- NPM version: 9.6.7
- Strapi version: 4.12.4
- Database: aurora postgres 14.6
- Operating system: the docker container node:18-alpine,
Linux 30339f198cc4 5.15.49-linuxkit-pr #1 SMP PREEMPT Thu May 25 07:27:39 UTC 2023 aarch64 Linux - Is your project Javascript or Typescript: typescript
Describe the bug
The Strapi admin panel won't load. It shows an error banner with the text:
Warning: An error occurred while requesting the API
Looking in the browser console, the browser also tries to make several requests to http://localhost:1337, which makes no sense on the public internet. I haven't changed any configurations between 4.12.1 and 4.12.4.
Steps to reproduce the behavior
- Visit a strapi admin panel deployed to an environment other than localhost
Expected behavior
The admin panel loads.
Screenshots
(hostname of my server redacted for privacy)

Code snippets
n/a
Additional context
I tried setting STRAPI_ADMIN_BACKEND_URL manually to the domain where my strapi server is, but it didn't work.
cannorin, Cretezy, cajotafer, RicardsRikmanis, alexey-klimovich and 10 moreexneval, creazy231, dcodesdev and n2o
Metadata
Metadata
Assignees
Labels
issue: bugIssue reporting a bugIssue reporting a bugseverity: highIf it breaks the basic use of the productIf it breaks the basic use of the productsource: core:adminSource is core/admin packageSource is core/admin packagestatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community members