warn browser users loud and clear that only https is supported
Bu işleme şunda yer alıyor:
ebeveyn
5e6dc31c35
işleme
87ba1e4298
@ -2,6 +2,10 @@
|
|||||||
;(function (exports) {
|
;(function (exports) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
if ('undefined' !== typeof window && 'https:' !== window.location.protocol) {
|
||||||
|
window.alert("You must use https. We suggest using caddy as your webserver (or serve-https if testing locally)");
|
||||||
|
}
|
||||||
|
|
||||||
var OAUTH3 = exports.OAUTH3 = {
|
var OAUTH3 = exports.OAUTH3 = {
|
||||||
clientUri: function (location) {
|
clientUri: function (location) {
|
||||||
return OAUTH3.uri.normalize(location.host + (location.pathname || ''));
|
return OAUTH3.uri.normalize(location.host + (location.pathname || ''));
|
||||||
|
|||||||
Yükleniyor…
x
Yeni konuda referans
Bir kullanıcı engelle