Защита
This commit is contained in:
parent
90d19a8d9a
commit
c1e5c32170
2 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
const API_BASE = "https://vpn.spectralvpn.ru:8500";
|
const API_BASE = "https://spectralvpn.ru:8500";
|
||||||
|
|
||||||
const getCookie = (name) => {
|
const getCookie = (name) => {
|
||||||
const match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)'));
|
const match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)'));
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
try {
|
try {
|
||||||
const passwordHash = await sha256(password);
|
const passwordHash = await sha256(password);
|
||||||
|
|
||||||
const response = await fetch("https://vpn.spectralvpn.ru:8500/registration", {
|
const response = await fetch("https://spectralvpn.ru:8500/registration", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue