I am writing an applition where I need to use JavaScript's "Fetch" and because of CORS, all my requests have a pre-flight OPTIONS request. This means that in my session database, it creates a new session everytime an OPTIONS request is made. I do remove sessions after they expire, however, it is tedious and strains the server to remove those useless sessions everytime.
Is there a way for me to specify that flask_session can ignore OPTIONS requests? I have looked everywhere but I can't find a good option and the flask_session documentation isn't much to write home about (you have to manually remove your sessions once expired).