Try moving the redirect to the app layer.
This commit is contained in:
parent
a370130494
commit
0cba17efe3
3 changed files with 24 additions and 4 deletions
|
@ -60,6 +60,7 @@ class DebugConfig(FlaskConfig, MailConfig, LocalStorage, SQLiteDB):
|
|||
'level': logging.DEBUG,
|
||||
'format': LOG_FORMAT
|
||||
}
|
||||
SECURE_REDIRECT = False
|
||||
|
||||
|
||||
class ProductionConfig(FlaskConfig, MailConfig, S3Storage, RDSMySQL):
|
||||
|
@ -69,3 +70,4 @@ class ProductionConfig(FlaskConfig, MailConfig, S3Storage, RDSMySQL):
|
|||
'level': logging.DEBUG,
|
||||
'format': LOG_FORMAT,
|
||||
}
|
||||
SECURE_REDIRECT = True
|
||||
|
|
Reference in a new issue