You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am currently trying to open the webpage that's hosting my flask script but whenever I try opening the link google (and every other browser) just said
"This site cant provide a secure connection,
127.0.0.1 sent an invalid response.
ERR_SSL_PROTOCOL_ERROR"
and whenever I look back at my terminal it says
"
127.0.0.1 - - [25/Jan/2021 15:59:16] code 400, message Bad request version
"
and a bunch of UTF-8 encoded things which im not gonna show since it may be confidential (And it also has unknown characters so I cant decode).
I am sure that talisman is causing this because when I remove the Talisman(app) it works perfectly fine but when I do add it, the same error occurs until I remove it and restart my laptop.
My script:
`
from flask import Flask
from flask import render_template
from flask_talisman import Talisman
app = Flask(name)
Talisman(app)
@app.route('/')
def index():
return render_template("index.html")
if name == "main":
app.run(debug=True)
`
The text was updated successfully, but these errors were encountered:
My guess is you have a localhost server you try to access over https://, but that would fail (unless you configure SSL for your localhost server). You could try to explicitly ask your browser to access the localhost server on http:// and set the force_https=False argument in Talisman while developing on localhost.
Note also that it looks like this project have been forked and is more actively maintained over there (#78).
Hello,
I am currently trying to open the webpage that's hosting my flask script but whenever I try opening the link google (and every other browser) just said
"This site cant provide a secure connection,
127.0.0.1 sent an invalid response.
ERR_SSL_PROTOCOL_ERROR"
and whenever I look back at my terminal it says
"
127.0.0.1 - - [25/Jan/2021 15:59:16] code 400, message Bad request version
"
and a bunch of UTF-8 encoded things which im not gonna show since it may be confidential (And it also has unknown characters so I cant decode).
I am sure that talisman is causing this because when I remove the Talisman(app) it works perfectly fine but when I do add it, the same error occurs until I remove it and restart my laptop.
My script:
`
from flask import Flask
from flask import render_template
from flask_talisman import Talisman
app = Flask(name)
Talisman(app)
@app.route('/')
def index():
return render_template("index.html")
if name == "main":
app.run(debug=True)
`
The text was updated successfully, but these errors were encountered: