9
Views
2
Comments
CORS Error in Web Socket

I have implemented a WebSocket and configured the site properties with certain values(Attached Image). However, in the browser console, I am seeing the error: 'No Access-Control-Allow-Origin header is present on the requested resource. How can I fix this issue, and what is the best way to test my WebSocket connection? Are there any free Server URL to test WebSockets? 


2016-04-22 00-29-45
Nuno Reis
 
MVP

Hello.

CORS means Cross Origin Resource Sharing. It allows a server to indicate origin domain (other than its own) from which a browser should permit loading resources. 

That error means one of the servers is not allowing the other.


You can set OutSystems side:

https://www.outsystems.com/forums/discussion/44851/how-to-add-custom-response-headers-manipule-web-config-for-cases-like-cors/


UserImage.jpg
Tamilselvan M


Hi Nuno Reis,

I'm Using this  Server URL for WebSocket. wss://echo.websocket.org. Im not Consuming Any API. For this one how I can Set.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.