login fix v2
This commit is contained in:
@@ -102,6 +102,10 @@ VITE_APPWRITE_ENDPOINT=https://appwrite.webklar.com/v1
|
||||
VITE_APPWRITE_PROJECT_ID=696b82bb0036d2e547ad
|
||||
```
|
||||
|
||||
### CORS / Production (z. B. https://www.eship.pro)
|
||||
|
||||
Wenn die App unter einer anderen Domain läuft als im Appwrite-Projekt eingetragen, blockiert der Browser die Requests (CORS). **Lösung:** Im [Appwrite Console](https://appwrite.io/docs/console) unter dem Projekt → **Auth** → **Settings** → **Platforms** die genaue App-URL als Plattform hinzufügen (z. B. `https://www.eship.pro`). Ohne diesen Eintrag bleibt `Access-Control-Allow-Origin` auf einer anderen Domain (z. B. `https://webklar.com`) und Anfragen von eship.pro schlagen fehl.
|
||||
|
||||
### Extension Backend URL (Extension/background.js)
|
||||
```javascript
|
||||
const BACKEND_URL = "http://localhost:3000"; // Anpassen falls nötig
|
||||
|
||||
Reference in New Issue
Block a user