I didn't notice this before but Flask's CORS defaults, i.e.:
allow requests from any origins.
We should restrict the origins to http://localhost (development) and https://play.fortran-lang.org (production).
@ashirrwad do you think you can tackle this? I'm not as familiar with Flask.