-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
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'''
`
Metadata
Metadata
Assignees
Labels
No labels