L5-Swagger
L5-Swagger copied to clipboard
Docs page is blank and errors in console
- 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
- 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”.
- Uncaught SyntaxError: expected expression, got '<'
- Uncaught ReferenceError: SwaggerUIBundle is not defined