updated CORS config
This commit is contained in:
@@ -9,9 +9,7 @@ VAPID_SUBJECT=mailto:mailto:user@example.org
|
||||
# --- Server Configuration ---
|
||||
# Internal port for the Node.js app
|
||||
PORT=3000
|
||||
# Path inside the container
|
||||
SUBSCRIPTIONS_FILE=/app/subscriptions.json
|
||||
# Default button name to use when not specified
|
||||
DEFAULT_BUTTON_NAME=game-button
|
||||
|
||||
# --- Authentication (Optional) ---
|
||||
@@ -26,9 +24,9 @@ BASIC_AUTH_PASSWORD=password
|
||||
# Comma-separated list of allowed origins for requests (e.g., your PWA frontend URL)
|
||||
# If blank or not set, CORS might block browser requests (like from a setup page).
|
||||
# Use '*' carefully, preferably list specific domains.
|
||||
ALLOWED_ORIGINS=https://game-timer.virtonline.eu
|
||||
ALLOWED_METHODS=POST,GET,OPTIONS
|
||||
ALLOWED_HEADERS=Content-Type,Authorization
|
||||
ALLOWED_ORIGINS=https://game-timer.virtonline.eu,http://localhost
|
||||
ALLOWED_METHODS=POST,GET
|
||||
ALLOWED_HEADERS=Content-Type,Authorization,button-name,button-battery-level,timestamp
|
||||
|
||||
# --- Web Push Retry Configuration (Optional) ---
|
||||
# Number of retries on failure (e.g., DNS issues)
|
||||
|
||||
Reference in New Issue
Block a user