Skip to content

Commit

Permalink
fix: swagger https issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mradkov committed Jul 8, 2021
1 parent ff8b56b commit 3a876bb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/utils/swagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,13 @@ export default async (specUrl, { spec, internalUrl, disableBigNumbers, disableCa
spec = spec || await (await fetch(specUrl)).json()
const jsonImp = disableBigNumbers ? JSON : JsonBig

if (['https://compiler.aepps.com', 'https://latest.compiler.aepps.com']
.includes(new URL(specUrl).origin)) {
if (
[
'https://compiler.aepps.com',
'https://latest.compiler.aepps.com'
].includes(new URL(specUrl).origin) ||
new URL(specUrl).origin.includes('https://')
) {
spec.schemes = ['https']
}

Expand Down

0 comments on commit 3a876bb

Please sign in to comment.