Skip to content

Assets not loading #3578

@navsaini

Description

@navsaini

I am using swagger-ui through a React component to display various swaggers, and in the cases of certain swagger specs, the assets do not load correctly. For example --
screen shot 2017-08-15 at 3 10 51 pm
The lock next to the "Authorize" text is missing.

Q A
Bug or feature request? Bug
Which Swagger/OpenAPI version? 2.0
Which Swagger-UI version? 3.1.4
How did you install Swagger-UI? npm
Which browser & version? Google Chrome 60.0.3112.90 (Official Build)
Which operating system? macOS Sierra

Demonstration API definition

Cannot provide entire spec because of confidentiality but can provide certain information about spec.

Configuration (browser query string, constructor, config.yaml)

        new SwaggerUIBundle({
            dom_id: '#swaggerContainer',
            spec: this.state.spec,
            presets: [presets.apis]
        });

Expected Behavior

Icons should be present where they are not

Current Behavior

Currently missing these icons

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions