Commit c38e9196 authored by Yuliya Sharafitdinova's avatar Yuliya Sharafitdinova

Merge branch 'main' of github.com:blockscout/frontend

parents e5c669b6 2b4af16d
...@@ -57,6 +57,9 @@ const SwaggerUI = () => { ...@@ -57,6 +57,9 @@ const SwaggerUI = () => {
const reqInterceptor = React.useCallback((req: any) => { const reqInterceptor = React.useCallback((req: any) => {
if (!req.loadSpec) { if (!req.loadSpec) {
req.url = req.url.replace(DEFAULT_SERVER, appConfig.api.host); req.url = req.url.replace(DEFAULT_SERVER, appConfig.api.host);
const url = new URL(req.url);
url.protocol = 'https';
req.url = url;
} }
return req; return req;
}, []); }, []);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment