# This is required since if this is not there, then OPTIONS requests for
# the APIs exposed by the supertokens' Middleware will return a 404
@app.route('/', defaults={'u_path': ''})
@app.route('/')
def catch_all(u_path: str):
abort(404)
why is this required from a backend point of view to allow options request
r
rp_st
11/06/2023, 1:56 PM
Hey. Erich framework are you using?
t
Tushar
11/07/2023, 8:46 AM
flask
Tushar
11/07/2023, 8:46 AM
Couldn't understand the reason why this is needed to allow options request
r
rp_st
11/07/2023, 8:49 AM
I think that’s a flask specific thing
rp_st
11/07/2023, 8:49 AM
Otherwise flask gives a 404
t
Tushar
11/10/2023, 6:40 AM
But this eseentially means catching all the routes and aborting with 404 , how does it help ?
r
rp_st
11/10/2023, 6:57 AM
no i think without this, there is no response sent. I don't recall why this was needed now, but you can remove it and try and experiment