feature: BaseServer.corsMiddleware
should be publicliy modifiable
#651
Labels
enhancement
New feature or request
Milestone
Is your feature request related to a problem? Please describe.
socket.io
(hereengine.io
) uses express's cors library for cors (dependency). I am currently developing a framework and had to write my own cors package in this framework. My framework supports websocket and usessocket.io
. So when I try to use my cors package for websocket I do some very unpleasant things.Describe the solution you'd like
The
corsMiddleware
function of theBaseServer
class must be explicitly changed over the io instance or a middleware must be entered as a cors option.Describe alternatives you've considered
Alternatively, the following option should be entered:
the current code is right here
and here
Although this is not a very good example, I think it is enough to explain my problem. I can create a better PR if you give ideas and support.
Best,
Sami Salih İbrahimbaş
The text was updated successfully, but these errors were encountered: