1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Dashboard authentication

This commit is contained in:
Otto Winter
2018-06-07 20:47:06 +02:00
parent 135117714b
commit ec3366cce0
5 changed files with 75 additions and 8 deletions

View File

@@ -524,7 +524,7 @@
let ports = [];
const fetchSerialPorts = (begin=false) => {
fetch('/serial-ports').then(res => res.json())
fetch('/serial-ports', {credentials: "same-origin"}).then(res => res.json())
.then(response => {
if (ports.length === response.length) {
let allEqual = true;