This commit is contained in:
Louis Mazin 2026-10-10 20:44:16 +02:00
parent bc5075a90c
commit f802854292
2 changed files with 3 additions and 13 deletions

View File

@ -130,13 +130,9 @@ USE_TZ = True
STATIC_URL = 'static/' STATIC_URL = 'static/'
# CORS configuration CORS_ALLOWED_ORIGINS = config('ALLOWED_HOSTS', default='').split(',')
CORS_ALLOWED_ORIGINS = [ if not CORS_ALLOWED_ORIGINS or CORS_ALLOWED_ORIGINS == ['']:
"http://localhost:1028", CORS_ALLOWED_ORIGINS = ['*']
"http://127.0.0.1:1028",
"http://192.168.1.19:1028",
"https://boulangerie.louismazin.ovh"
]
# REST Framework & JWT settings # REST Framework & JWT settings
REST_FRAMEWORK = { REST_FRAMEWORK = {

View File

@ -14,10 +14,4 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url)), '@': fileURLToPath(new URL('./src', import.meta.url)),
}, },
}, },
preview: {
allowedHosts: [
'boulangerie.louismazin.ovh',
],
},
}) })