Typhonragewind / meshcentral-docker

163 stars 46 forks source link

"Invalid origin in HTTP request, click to reconnect." Require docker env var for allowOrigin #45

Open silycr opened 6 months ago

silycr commented 6 months ago

Error presented after logging in

Invalid origin in HTTP request, click to reconnect.

Feature introduced in MeshCentral v1.1.21 is an allowOrigin tag in the config.json

FIX: Add option in environment block for acceptable origins, default true(all)

Solution for now is to modify config.json with

{
  "settings": { ... },
  "domains": {
    "": {
      "allowedOrigin": true
    }
  }
}

See https://github.com/Ylianst/MeshCentral/issues/5826 for more information