pypi strawberry-graphql 0.345.0

2 hours ago

This release fixes strawberry dev being reachable from other machines and from
other websites by default. It now listens on 127.0.0.1 and only lets pages
served from the same machine read its responses cross-origin. It also pins the
Apollo Sandbox and Pathfinder IDE pages to known versions and adds a production
checklist to the deployment docs.

  • strawberry dev now binds to the loopback interface instead of 0.0.0.0. If
    you reach it from a Docker container with a published port, a dev container or
    another device on your network, pass --host 0.0.0.0.
  • The dev server's CORS policy now only allows localhost, 127.0.0.1 and
    [::1] origins on any port, instead of *. A frontend dev server on another
    local port keeps working, but other websites open in your browser can no
    longer read responses from your dev server.
  • The Apollo Sandbox page loads Apollo's script from the v2 path of Apollo's
    CDN instead of _latest, and the Pathfinder page pins the versions of React,
    React DOM and scheduler that esm.sh resolves for Pathfinder. Neither page can
    use subresource integrity hashes; use GraphiQL, which does, if you need them.
  • The deployment guide
    now walks through the settings to review before going to production.

This release was contributed by @patrick91 in #4846

Additional contributors: @ampagent

Don't miss a new strawberry-graphql release

NewReleases is sending notifications on new releases.