Skip to content

Restrict CORS rules on the Python server #34

@milancurcic

Description

@milancurcic
Member

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.

Activity

ashirrwad

ashirrwad commented on Sep 10, 2022

@ashirrwad
Member

Yes, of course. Allowing cors for all sources helped make development simpler. I'll add rules for specific origins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @milancurcic@ashirrwad

        Issue actions

          Restrict CORS rules on the Python server · Issue #34 · fortran-lang/playground