test CORS 1
All checks were successful
Deploy App / deploy (push) Successful in 20s

This commit is contained in:
valere
2025-12-17 20:09:28 +01:00
parent dbba3c6564
commit 3db88db319
2 changed files with 22 additions and 1 deletions

View File

@@ -4,4 +4,4 @@ WORKDIR /app
COPY . .
RUN npm ci
CMD npx serve /mnt/media/files
CMD ["npx", "serve", "/mnt/media/files", "-c", "serve.json"]

21
serve.json Normal file
View File

@@ -0,0 +1,21 @@
{
"headers": [
{
"source": "*",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "GET, POST, PUT, DELETE, OPTIONS"
},
{
"key": "Access-Control-Allow-Headers",
"value": "Content-Type, Authorization"
}
]
}
]
}