L5-Swagger icon indicating copy to clipboard operation
L5-Swagger copied to clipboard

Docs page is blank and errors in console

Open adeel94mirza opened this issue 2 years ago • 0 comments

  • L5-Swagger Version: 8.3.2
  • PHP Version: 8.0.16
  • OS: Linux

Description:

Getting blank screen and below mentioned errors in console. I followed the installation and configuration instructions and successfully generated the docs on my local codebase. Once pushed on the server I got an error which was fixed by URL::forceScheme('https').

ERRORS

  1. The stylesheet https://www.didx.eu/docs/asset/swagger-ui.css?v=a0952f52b09a2dc0c182298b2ea69849 was not loaded because its MIME type, “text/html”, is not “text/css”.
  2. Uncaught SyntaxError: expected expression, got '<'
  3. Uncaught ReferenceError: SwaggerUIBundle is not defined

image

adeel94mirza avatar Jun 23 '22 15:06 adeel94mirza