DarkaOnLine / L5-Swagger

OpenApi or Swagger integration to Laravel
https://github.com/DarkaOnLine/L5-Swagger
MIT License
2.64k stars 394 forks source link

fix(Asset): fixed asset not fount (404) #503

Closed Gossteer closed 2 months ago

Gossteer commented 1 year ago

asset not found (404) if used common nginx conf:

    location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
        expires max;
        try_files $uri =404;
    }
marcuschristiansen commented 7 months ago

Had a similar problem. Check if L5_SWAGGER_USE_ABSOLUTE_PATH is set to false in your config file.

utpal21 commented 7 months ago

I was facing same issue and its solved by L5_SWAGGER_USE_ABSOLUTE_PATH is set to false into l5-swagger.php config file.

Solved