You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xh...@apache.org on 2019/05/29 19:13:09 UTC
[incubator-pinot] branch master updated: [TE] frontend -
harleyjj/application - redirect http to https (#4238)
This is an automated email from the ASF dual-hosted git repository.
xhsun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 3ce335a [TE] frontend - harleyjj/application - redirect http to https (#4238)
3ce335a is described below
commit 3ce335a2f815d4f0818a60a3f6397ce7f5f26387
Author: Harley Jackson <hj...@linkedin.com>
AuthorDate: Wed May 29 12:13:05 2019 -0700
[TE] frontend - harleyjj/application - redirect http to https (#4238)
---
thirdeye/thirdeye-frontend/app/pods/application/route.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/thirdeye/thirdeye-frontend/app/pods/application/route.js b/thirdeye/thirdeye-frontend/app/pods/application/route.js
index f6badf1..e45b30c 100644
--- a/thirdeye/thirdeye-frontend/app/pods/application/route.js
+++ b/thirdeye/thirdeye-frontend/app/pods/application/route.js
@@ -16,13 +16,17 @@ export default Route.extend(ApplicationRouteMixin, {
session: service(),
notifications: service('toast'),
queryParams: {
- debug: queryParamsConfig,
+ debug: queryParamsConfig
},
-
+
beforeModel() {
// calling this._super to trigger ember-simple-auth's hook
this._super(...arguments);
+ if (config.environment === 'production' && location.protocol != 'https:') {
+ location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
+ }
+
// invalidates session if cookie expired
if (this.get('session.isAuthenticated')) {
fetch('/auth')
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org