Skip to content

Can't load admin panel in 4.12.4 on the public internet #17634

@exchgr

Description

@exchgr

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

  1. 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)
Screenshot 2023-08-09 at 6 09 02 PM

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.

Metadata

Metadata

Assignees

Labels

issue: bugIssue reporting a bugseverity: highIf it breaks the basic use of the productsource: core:adminSource is core/admin packagestatus: confirmedConfirmed by a Strapi Team member or multiple community members

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions