Passport Fix (#1955)

* fix: Fixed bug in passport access

* fix: resolved issues with postMessage and static urls
This commit is contained in:
Wyatt Johnson
2018-10-02 16:21:45 +00:00
committed by GitHub
parent 6bff2de371
commit 7b97a8fca2
5 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { createPostMessage } from 'coral-framework/services/postMessage';
document.addEventListener('DOMContentLoaded', () => {
const staticConfig = getStaticConfiguration();
const { STATIC_ORIGIN: origin } = staticConfig;
const { BASE_ORIGIN: origin } = staticConfig;
const postMessage = createPostMessage(origin);
// Get the auth element and parse it as JSON by decoding it.
+1 -1
View File
@@ -136,7 +136,7 @@ export async function createContext({
});
const staticConfig = getStaticConfiguration();
let { LIVE_URI: liveUri, STATIC_ORIGIN: origin } = staticConfig;
let { LIVE_URI: liveUri, BASE_ORIGIN: origin } = staticConfig;
if (liveUri == null) {
// The protocol must match the origin protocol, secure/insecure.
const protocol = location.protocol === 'https:' ? 'wss' : 'ws';