-
Notifications
You must be signed in to change notification settings - Fork 46
feat: provide an ability to ignore invalid SSL certificates while usi… #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
const ssr = overrideConfig.apps[appName].ssr; | ||
|
||
if (ssr !== undefined && ssr.src !== undefined && ssr.src.startsWith('https:')) { | ||
overrideConfig.apps[appName].ssr.ignoreInvalidSsl = true; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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:' |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>`; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
8539bd4
to
a7ec4ea
Compare
…ave a src in SSR property
a7ec4ea
to
175617f
Compare
…ng LDE