Skip to main content

All Questions

Tagged with
-1 votes
2 answers
145 views

Getting Forbidden (403) CSRF verification failed

I am using Django, DRF , docker, Nginx and AWS EC2 instance for my personal project, application is working fine when it is using HTTP , once i changed to HTTPS i am getting CSRF Verification Failed. ...
vinod sagar's user avatar
1 vote
0 answers
223 views

Python Flask Gunicorn Nginx HTTPS

I just cannot get my application to run on https/ssl. I'm running my app with gunicorn, with the following command: gunicorn --worker-class eventlet --bind 0.0.0.0:5000 wsgi:app It works fine on http, ...
Fexell's user avatar
  • 53
1 vote
0 answers
481 views

FastAPI: url_for in Jinja2 template does not work with https [duplicate]

Everything was running fine until I switched the application to use https. All the links that the url_for function generates in the templates now look like this https://ibb.co/N3cJ9V4 Problem: Mixed ...
Jekson's user avatar
  • 3,282
0 votes
1 answer
311 views

Docker-Django-Nginx problem with http/https

I'm trying to test a setup in Docker. A web server running a python application, and I want to add an Nginx service to serve it. The result I am getting is "400 bad request" error In the ...
René Sánchez's user avatar
0 votes
1 answer
225 views

Domain certificate certbot issue or NGINX and GUNICORN3 do not handle request

I want to post a test Flask SSL server on UBUNTU. Here is my domain: viberchatbot.ga www.viberchatbot.ga 'A' record propagation is all green for domain and www.domain. I managed to setup SSL with '...
i.svirchev's user avatar
2 votes
2 answers
2k views

How to deploy Simple python HTTPS server in Kubernetes cluster?

Usually when I deploy a Simple HTTPS server in VM I do Create Certificate with ip $ openssl req -new -x509 -keyout private_key.pem -out public_cert.pem -days 365 -nodes Generating a RSA private key ..+...
Pradeep Padmanaban C's user avatar
0 votes
1 answer
1k views

How to use Django Nginx Application with both HTTP and HTTPS requests?

I have a Web Application that uses Django as backend and Nginx along with Gunicorn for the reverse proxy. I have already set up the Nginx configuration and it works perfectly when requests are sent ...
dracarys's user avatar
  • 1,121
1 vote
1 answer
2k views

Download "401 Unauthorized" video with selenium

I'm trying to create a bot that will download videos from this site named "Sdarot" using selenium and python3. Each video (or episode) in the site has a unique page and URL. When you load an ...
RealA10N's user avatar
  • 130
0 votes
0 answers
46 views

nginx allows https inside server but not outside

I've a Django web app running using Waitress as a server. The server's firewall is set to allow HTTPS inbound traffic. However, with the settings described below I cannot access the HTTPS site ...
Jon's user avatar
  • 2,577
0 votes
0 answers
44 views

Nginx, https and websocket chat not working with Django

after adding the SSL certificates successfully, the certificate is blocking the python scripts that uses websockets library in our website's chat. Has anyone experienced anything similar? Thanks
Héctor Miquel Vidal's user avatar
0 votes
0 answers
38 views

how can I make a web page (main). Where there are two links where each link sends me to a different project, using nginx and my domain is still https

Nginx file when it arrives in my domain/lala or poww redirect me to port where my project is running gzip on; gzip_proxied any; gzip_types text/plain text/xml text/css application/javascript ...
Thiago Siqueira's user avatar
0 votes
0 answers
228 views

How to login in django with https/ssl at deploy server

I have django project. It works well on my Mac.But it's not work well on GCP(Ubuntu 17). When I try login from login page. I cant login and authorize. I return same login page. No thing happen. Just ...
Nori's user avatar
  • 3,032
29 votes
3 answers
10k views

I continuously receive `Invalid HTTP_HOST header` error email after I upgrade my django site from http to https

Recently, I upgrade one of my django sites from http to https. However, after that, I continuously receive Invalid HTTP_HOST header error email while before I never received such type of emails. Here ...
You Gakukou's user avatar
1 vote
1 answer
4k views

Flask - Why are some endpoints not HTTPS?

I am building a web app using Flask. Currently I am using Gunicorn to serve the application and nginx to act as a reverse-proxy. Chrome Dev tools is complaining that one endpoint are not HTTPS: ...
philosophie's user avatar
0 votes
0 answers
2k views

How do I call a web service method when using python 'requests' library?

How do I call a web service method when using python 'requests' library? My code looks like this: import requests CERT = r'/path/to/cert.crt' #Client certificate KEY = r'/path/to/key.key' #Client ...
yusha uzumo's user avatar

15 30 50 per page