-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Open
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktop
Description
Description
TLDR: Update the HTTP basic auth middleware to allow static resources through.
Reason: I run OPENCODE_SERVER_PASSWORD=iampassword opencode web to start the web service and configure an HTTPS certificate so I can access it via my phone browser outdoors (PWA requires HTTPS). But the browser wouldn’t recognize it as a PWA app.
After investigating, the issue is that OpenCode’s backend HTTP basic auth middleware at packages/opencode/src/server/server.ts blocks access to /site.webmanifest. After skipping auth for it, the browser correctly recognizes it as a PWA app.
Plugins
none
OpenCode version
dev
Steps to reproduce
- OPENCODE_SERVER_PASSWORD=iampassword opencode web
- Setup your HTTPS web proxy for it
- Navigate to the HTTPS website. Check chromium F12 tool "Application"
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktop