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
I'm trying to figure out if flask-basicauth doesn't support this, or if I'm doing something wrong.
With other http / apache Basic Auth you can get straight to the site through embedding the user/pass into the URL like: http://user:pass@server
Is this possible? I haven't made it work yet. Below is my code.
`
from flask_basicauth import BasicAuth
app = flask.Flask(name)
CORS(app)
#CORS(app, expose_headers='Authorization'). #Did not work
That should be possible. My understanding is that the client should extract the password and put it in a header for you. So this library can't tell the difference.
I'm trying to figure out if flask-basicauth doesn't support this, or if I'm doing something wrong.
With other http / apache Basic Auth you can get straight to the site through embedding the user/pass into the URL like:
http://user:pass@server
Is this possible? I haven't made it work yet. Below is my code.
`
from flask_basicauth import BasicAuth
app = flask.Flask(name)
CORS(app)
#CORS(app, expose_headers='Authorization'). #Did not work
app.config['BASIC_AUTH_USERNAME'] = 'user'
app.config['BASIC_AUTH_PASSWORD'] = 'pass'
app.config['BASIC_AUTH_FORCE'] = True
basic_auth = BasicAuth(app)
@app.route('/', methods=['GET'])
def hello():
return '''Running'''
`
The text was updated successfully, but these errors were encountered: