I trying to establish connection for the first time with web sockets inside my angular app. But its not working and its replacing the url path
My socket service
public initSocket(): void {
this.socket = socketIo('http://11.11.11.111/demo-api/status/');
}
Error
Access to XMLHttpRequest at 'http://11.11.11.111/?EIO=3&transport=polling&t=Meccctccu' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.