Commit 42dd2e8b authored by Thomas Frion's avatar Thomas Frion
Browse files

[FIX] Change env.prod of front-end

parent 073a622a
export const environment = {
production: true,
pghmApi: "http://127.0.0.1:8000",
pghmApi: "http://192.168.8.172:8000",
tokenLifeTime: 30, // The access token is valid during 30 minutes
refreshTokenLifeTime: 12, // The refresh token is valid during 12 hours
localStorage: {
......
......@@ -31,7 +31,7 @@ SECRET_KEY = 'exe2^_x*sxigfb%)d*-432_lfqeg2cgfgk)lun#irk#mh9v*eg'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ["127.0.0.1", "localhost"]
ALLOWED_HOSTS = ['*']
TESTING = sys.argv[1:2] == ['test']
......@@ -106,11 +106,12 @@ MIDDLEWARE_CLASSES = [
MIDDLEWARE = MIDDLEWARE_CLASSES
CORS_ORIGIN_ALLOW_ALL = False
CORS_ORIGIN_WHITELIST = (
'http://localhost:4200',
'http://localhost:9876',
)
CORS_ORIGIN_ALLOW_ALL = True
# CORS_ORIGIN_WHITELIST = (
# 'http://localhost:4200',
# 'http://localhost:3000',
# 'http://localhost:9876',
# )
SERIALIZATION_MODULES = {
'geojson': 'djgeojson.serializers'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment