I wrote REST API gateway using flask-restplus plugin, I tested it locally, and it works using flask run.
But when I try to run the website on server, it opens in the browser but Swagger documentation doesn't shows up in browser console. I can see the below error:
Here is my site nginx configuration:
sites-available $ vi clinic_backend server { listen 80 default_server; listen [::]:80; root /var/www/html; server_name example.com; location /static { alias /var/www/html/static/; } location / { try_files $uri @wsgi; } location @wsgi { proxy_pass http://unix:/tmp/gunicorn.sock; include proxy_params; } location ~* .(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ { access_log off; log_not_found off; expires max; } } 