|
|
@@ -257,6 +257,9 @@ def register():
|
|
|
flash('Account Registration Successful!', category='success')
|
|
|
response = make_response(redirect(url_for('logic.profile')))
|
|
|
response.headers['Content-Security-Policy'] = "default-src 'self'"
|
|
|
+ response.headers['Strict-Transport-Security'] = 'max-age=31536000; includeSubDomains'
|
|
|
+ response.headers['X-Content-Type-Options'] = 'nosniff'
|
|
|
+ response.headers['X-Frame-Options'] = 'SAMEORIGIN'
|
|
|
return response
|
|
|
else:
|
|
|
flash('Registration Failed', category='error')
|