Skip to content

Port/CORS issue on Mac OS Ventura #7

Description

@rickboot

On Mac OS Ventura, I kept getting 'Error starting scraper' errors after clicking on the Start Scraper button. I checked Chrome devtools and saw that I was getting CORS errors ('No 'Access-Control-Allow-Origin' header is present on the requested resource').

I know Flask CORS is supposed to avoid this issue, but also tried to explicitly add the correct response headers. No luck.

Mac OS is now using port 5000 for Airplay, the port that Flask defaults to. I changed the frontend and backend to use port 5050 the app now works.

The changes are:

  1. Search and replace all occurrences of '5000' with '5050'
  2. In app.py, replace 'app.run()' with app.run(port=5050)

I can submit a PR if you want to changes.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions