feat: npm install nextjs-cors weil

Access to fetch at 'http://localhost:3000/api/linesColorApi' from origin 'http://10.10.0.13:3000' has been blocked by CORS policy: 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.
This commit is contained in:
ISA
2024-07-16 14:30:17 +02:00
parent f59fa74e12
commit de40d9ccb9
7 changed files with 65 additions and 6 deletions

View File

@@ -10,6 +10,7 @@
"mysql": "^2.18.1",
"mysql2": "^3.10.1",
"next": "^14.2.3",
"nextjs-cors": "^2.2.0",
"overlapping-marker-spiderfier-leaflet": "^0.2.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",