Skip to content

Restrict CORS rules on the Python server #34

Open
@milancurcic

Description

@milancurcic

I didn't notice this before but Flask's CORS defaults, i.e.:

cors = CORS(app)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions