fail
2 вопросаПомогите пожалуйста, что не так? :5173/#header:1 Access to fetch at 'http://192.168.1.112:4000/graph...
Помогите пожалуйста, что не так?
:5173/#header:1 Access to fetch at 'http://192.168.1.112:4000/graphql' from origin 'http://192.168.1.112:5173' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Main.page.tsx:8
POST ht...
<?php $servername = "localhost"; $username = "***"; $password = "*****"; $dbname = "*******"; //...
<?php
$servername = "localhost";
$username = "***";
$password = "*****";
$dbname = "*******";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT id, name, description, sku, barcode, price, cost, stock, category, manufacturer, weight, length, width, height, location, supplier, active, date_created, date_updated FROM product Order by id desc";
...