Qortora · Search · Indexed page

caddy.communityFetched 2026-08-16T02:26:50Z

Admin page error - Help - Caddy Community

1. The problem I’m having: When I browse to the admin page I get an error. I’m on the server machine. The way I read the log, there should be no issue accessing the admin endpoint: 2026/06/13 17:45:17.731 ← [34mINFO<-…

Open original source · Full cached text

Admin page error - Help - Caddy Community = 40rem)" rel="stylesheet" data-target="chat_desktop" /> = 40rem)" rel="stylesheet" data-target="discourse-reactions_desktop" /> = 40rem)" rel="stylesheet" data-target="poll_desktop" /> = 40rem)" rel="stylesheet" data-target="desktop_theme" data-theme-id="1" data-theme-name="caddy custom"/> Admin page error Help JustinWebDev (Justin WD) June 13, 2026, 9:57pm 1 1. The problem I’m having: When I browse to the admin page I get an error. I’m on the server machine. The way I read the log, there should be no issue accessing the admin endpoint: 2026/06/13 17:45:17.731 ← [34mINFO<-[0m admin admin endpoint started {“address”: “localhost:2019”, “enforce_origin”: false, “origins”: [“//[::1]:2019”, “``//127.0.0.1:2019``”, “``//localhost:2019``”]} 2. Error messages and/or full log output: {"error":"client is not allowed to access from origin ''"} 2026/06/13 21:59:52.936 ←[31mERROR←[0m admin.api request error {"error": "client attempted to make request by disabling same-origin policy using no-cors mode", "status_code": 400} 3. Caddy version: 2.11.4 AMD x64 4. How I installed and ran Caddy: caddy run a. System environment: Windows 10 x64 b. Command: http://localhost:2019/admin or /config or /debug c. Service/unit/compose file: PASTE OVER THIS HERE IN THIS CODE BLOCK. Please ensure it looks nice. d. My complete Caddy config: sub.anythingyoulike.com:8443 { reverse_proxy :81 } 5. Links to relevant resources: Type here timelordx (timelordx) June 14, 2026, 3:32am 2 You’re not saying how you’re browsing the admin page but your client needs to set the origin http request header. matt (Matt Holt) June 16, 2026, 5:21pm 3 The error says why the request was rejected: client attempted to make request by disabling same-origin policy using no-cors mode So, make sure the client is not doing this JustinWebDev (Justin WD) June 18, 2026, 9:06pm 4 I’m using my web browser, Edge on W10. How do I change how the browser is browsing to the page? Man, I don’t understand this. It used to work. I’ve never had trouble using localhost before for anything. I tried "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --user-data-dir=C:\msedge-dev-data\ --disable-web-security but still fails. So what is Caddy doing by this?: “enforce_origin”: false matt (Matt Holt) June 18, 2026, 10:46pm 5 What is the request being made by Edge? Use the devtools to get a readout of what it’s actually doing. JustinWebDev (Justin WD) June 20, 2026, 4:18pm 6 It’s not specific to Edge, to be sure. Firefox does the same. Does this show the request info you are thinking of? Fx Edge image546×665 21.6 KB image409×517 19.6 KB If this is general browser behavior, then how does anyone see Caddy’s admin or config pages? Mohammed90 (Mohammed Al Sahaf) June 20, 2026, 5:16pm 7 Let’s take a step back. What are you exactly trying to do? JustinWebDev (Justin WD) June 20, 2026, 5:28pm 8 Just trying to see the /admin or /config page after starting Caddy. Mohammed90 (Mohammed Al Sahaf) June 20, 2026, 6:29pm 9 It’s an API endpoint, not a page browsable on the browser. JustinWebDev (Justin WD) June 20, 2026, 7:24pm 10 Sorry about that. I had a bookmark in my browser from a long time ago. I don’t remember what I saw back then, but it must have shown something useful. Thanks.