diff --git a/webclient/config.php b/webclient/config.php new file mode 100644 index 0000000..2c5cb56 --- /dev/null +++ b/webclient/config.php @@ -0,0 +1,18 @@ + "0.1 dev", + "server" => "http://192.168.1.31", + // Какие пути разрешены (белый список) — подстрой под себя + "allowed_prefixes" => [ + "/api/v1/", + ], + "proxy" => [ + // Кто может обращаться (CORS) + "allowed_origins" => [ + 'http://localhost:5173', + 'http://127.0.0.1:5173', + // 'https://your-frontend-domain.com', + ], + ], +]; \ No newline at end of file diff --git a/webclient/index.php b/webclient/index.php index c864a47..304f97e 100644 --- a/webclient/index.php +++ b/webclient/index.php @@ -1,6 +1,9 @@
+