deepstreamIO / deepstream.io

deepstream.io server
https://deepstreamio.github.io
MIT License
7.14k stars 381 forks source link

deepstream@5.0.5 CORS connection #1039

Closed caracal7 closed 4 years ago

caracal7 commented 4 years ago
const DeepstreamServer = new Deepstream({
    httpServer: {
        type: 'uws', // 'default'
        options: {
            port: 6020,
            host: '127.0.0.1',
            allowAllOrigins: true,
            origins: ['https://admin.iris.localhost:8088']
        }
    },
});

Message in browser console

[Warning] [blocked] The page at https://admin.iris.localhost:8088/app/soc.main/index.html was not allowed to run insecure content from ws://localhost:6020/deepstream. (bundle.js, line 641)
caracal7 commented 4 years ago

I think this happened because I tried to connect from https to ws(not wss)