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?
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/
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.