CORS failure in Dashboard-Template

Hello guys,

I'm trying to implement a web-based terminal in my node-RED-dashboard with the template node. For this I am using xterm and now I want to connect it to wetty. But always I'm connecting it to the socket, the following error-message is visible in the console-tab:

Access to XMLHttpRequest at 'http://10.207.48.36:3000/socket.io/?EIO=4&transport=polling&t=OCXBIJl' from origin 'http://10.207.48.36:1880' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I've already read, that I have to configure the Access-Control-Allow-Origin with Express and Cors but I cant figure out how to add the library to the dashboard-template-node.

Here you can see the node:

image

Thanks in advance

Justin

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.