Closed owlfox closed 4 years ago
The reason I didn't turn it off is because flask-restplus didn't handle http redirect to https well after a monkey patch of this python package and
server {
listen 80;
listen [::]:80;
server_name _;
return 301 https://map.owlfox.org$request_uri;
}
this nginx config, now the sites handles http to https fairly well. https://github.com/noirbizarre/flask-restplus/issues/223
Sometimes the user might access the site through http, which caused cors happen. I kept it on for the access of swagger document
swagger.json
maybe I should check my nginx and figure out a way to fix it