☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
Some third-party selfhosted services (like Pocketbase) rely on PATCH requests, which are not allowed by Cosmos middleware. So when app tries to use such request it fails due to MethodDisallowedByPreflightResponse error.
What should have happened?
Patch requests should be passed through middleware as any other requests.
How to reproduce the bug?
Go to any service working through Cosmos
Open Devtools on the Network tab
Examine response headers of any random request to the service itself
Find header Access-Control-Allow-Methods
See that the list of methods is restricted to "GET, POST, PUT, DELETE, OPTIONS"
What happened?
Some third-party selfhosted services (like Pocketbase) rely on PATCH requests, which are not allowed by Cosmos middleware. So when app tries to use such request it fails due to MethodDisallowedByPreflightResponse error.
What should have happened?
Patch requests should be passed through middleware as any other requests.
How to reproduce the bug?
Relevant log output
No response
Other details
No response
System details