test
This commit is contained in:
parent
bc5075a90c
commit
f802854292
@ -130,13 +130,9 @@ USE_TZ = True
|
||||
|
||||
STATIC_URL = 'static/'
|
||||
|
||||
# CORS configuration
|
||||
CORS_ALLOWED_ORIGINS = [
|
||||
"http://localhost:1028",
|
||||
"http://127.0.0.1:1028",
|
||||
"http://192.168.1.19:1028",
|
||||
"https://boulangerie.louismazin.ovh"
|
||||
]
|
||||
CORS_ALLOWED_ORIGINS = config('ALLOWED_HOSTS', default='').split(',')
|
||||
if not CORS_ALLOWED_ORIGINS or CORS_ALLOWED_ORIGINS == ['']:
|
||||
CORS_ALLOWED_ORIGINS = ['*']
|
||||
|
||||
# REST Framework & JWT settings
|
||||
REST_FRAMEWORK = {
|
||||
|
||||
@ -14,10 +14,4 @@ export default defineConfig({
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
},
|
||||
},
|
||||
|
||||
preview: {
|
||||
allowedHosts: [
|
||||
'boulangerie.louismazin.ovh',
|
||||
],
|
||||
},
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user