# CORS failure in Dashboard-Template

**URL:** https://discourse.nodered.org/t/cors-failure-in-dashboard-template/67508
**Category:** Dashboard
**Tags:** node-red-dashboard
**Created:** [9 September 2022 07:53 UTC](https://discourse.nodered.org/t/cors-failure-in-dashboard-template/67508 "2022-09-09T07:53:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JustinB](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/justinb/32/68068_2.png) [@JustinB](https://discourse.nodered.org/u/JustinB)
#### Post date: [9 September 2022 07:53 UTC](https://discourse.nodered.org/t/cors-failure-in-dashboard-template/67508/1 "2022-09-09T07:53:35Z")

</div>

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](http://10.207.48.36:3000/socket.io/?EIO=4&transport=polling&t=OCXBIJl)' from origin '[http://10.207.48.36:1880](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](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/0/106e2d7034ece297d7c701c38dd0b4faa92127bf.png)

Thanks in advance

Justin

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [9 October 2022 07:54 UTC](https://discourse.nodered.org/t/cors-failure-in-dashboard-template/67508/2 "2022-10-09T07:54:20Z")

</div>

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