logto icon indicating copy to clipboard operation
logto copied to clipboard

bug: CORS errors in admin console

Open hades200082 opened this issue 3 months ago • 0 comments

Describe the bug

Running LogTo using Docker compose locally I get CORS errors in the admin console on localhost:3001 when it calls the API on localhost:3002.

Expected behavior

Admin console should work without CORS errors

How to reproduce?

  1. Run docker compose in docker desktop on windows.
  2. Go to http://localhost:3001/console/api-resources
  3. See CORS error in browser console and no results shown

Context

  • [ ] Logto Cloud
  • [ ] Self-hosted, Logto version = "latest" tag from docker
    • [x] Container (Docker image)
    • [ ] Raw Node.js

Screenshots

image image

hades200082 avatar May 17 '24 23:05 hades200082