test
This commit is contained in:
parent
bc5075a90c
commit
f802854292
@ -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 = {
|
||||||
|
|||||||
@ -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',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user