Comments (2)
Your filter is applied only for Spring web server, but netty-socket.io starts separate netty server and uses another port which you can specify in com.corundumstudio.socketio.Configuration
, it also contains getter/setter methods for allowed origin and headers
from netty-socketio.
@shutuper Thanks for the reply. I updated the code to
@Configuration
public class SocketIOConfig {
@Bean
public SocketIOServer socketIOServer() {
com.corundumstudio.socketio.Configuration config = new com.corundumstudio.socketio.Configuration();
config.setPort(8081);
config.setOrigin("*"); // Allow requests from all origins
return new SocketIOServer(config);
}
}
But still i get cors issue, I am accessing http://localhost:8081
from frontend side
from netty-socketio.
Related Issues (20)
- Ignore request for AuthorizationListener
- exception:io.netty.util.IllegalReferenceCountException: refCnt: 0 version:2.0.8 HOT 1
- if ack returns after the timeout trigger ,a IllegalStateException will be thrown HOT 8
- 链接断开后内存不释放 HOT 5
- socketio配置跨域请求可能多种选择,可以选择不配置? HOT 2
- 2.0.2版本在centos7服务器上部署就出现这个问题,看不懂
- Client Usge. HOT 1
- Memory growth issue 2.0.9
- Jackson Cannot Deserialize Object HOT 1
- How do we know it's a failed authorization from client?
- Ingress unable to connect to pod
- When I sent a byte [], the client failed to receive it.
- disconnect event, Socket closed.
- GraalVM Native-Image deployment
- Max Connections cannot exceed 64 HOT 3
- Use cases for Store interface
- @OnConnect连接触发两次,setAuthorizationListener无法获取到authToken。 HOT 1
- Where is the documentation?
- 注解增强与开发规范的建议
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netty-socketio.