Description
I am spawning multiple opencode servers with random ports and access them using one web instance.
However, starting opencode server with a wildcard cors does not work as it only checks for direct match.
opencode serve --cors "*"
Not providing cors flag causes the browser to just block the request due to missing CORS headers.
Plugins
No response
OpenCode version
1.15.9
Steps to reproduce
- Start opencode server with any cors config
- Launch a website of some kind
- Call
fetch() in the browser to the opencode server
- Error for
‘Access-Control-Allow-Origin’ missing
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
I am spawning multiple opencode servers with random ports and access them using one web instance.
However, starting opencode server with a wildcard
corsdoes not work as it only checks for direct match.opencode serve --cors "*"Not providing cors flag causes the browser to just block the request due to missing CORS headers.
Plugins
No response
OpenCode version
1.15.9
Steps to reproduce
fetch()in the browser to the opencode server‘Access-Control-Allow-Origin’ missingScreenshot and/or share link
No response
Operating System
No response
Terminal
No response