Skip to content

Conversation

oleh-momot
Copy link
Contributor

…ng LDE

const ssr = overrideConfig.apps[appName].ssr;

if (ssr !== undefined && ssr.src !== undefined && ssr.src.startsWith('https:')) {
overrideConfig.apps[appName].ssr.ignoreInvalidSsl = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comment which explains why we're doing this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provided a comment to explain it

@@ -1,21 +1,25 @@
import { expect } from 'chai';
const parseOverrideConfig = require('./parse-override-config');

const assignIgnoreInvalidSsl = (ssr, protocol = 'http:') => protocol === 'https:'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls create separate test for this functionality.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@@ -444,7 +446,7 @@ describe('server router', () => {
})).toString('base64'));

const expectedPage =
`<fragment id="${registryConfig.apps['apps'].name}" slot="apps" timeout="${registryConfig.apps.apps.ssr.timeout}" src="${expectedAppsUrl.toString()}" primary="true"></fragment>`;
`<fragment id="${registryConfig.apps['apps'].name}" slot="apps" timeout="${registryConfig.apps.apps.ssr.timeout}" src="${expectedAppsUrl.toString()}" ignore-invalid-ssl="false" primary="true"></fragment>`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore-invalid-ssl="false" counts as true.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@oleh-momot oleh-momot force-pushed the feature/ignore-invalid-ssl branch from 8539bd4 to a7ec4ea Compare December 21, 2020 09:58
@oleh-momot oleh-momot force-pushed the feature/ignore-invalid-ssl branch from a7ec4ea to 175617f Compare December 21, 2020 10:00
@oleh-momot oleh-momot merged commit d43c0ed into master Dec 21, 2020
@oleh-momot oleh-momot deleted the feature/ignore-invalid-ssl branch December 21, 2020 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants