Monorepo for Tangled tangled.org

Spindle config no longer allows CORS by default #4616

Open opened by superkenvery.tngl.sh

In commit 33a8d5a635aa172162bc60c93f31d2c3d950a63e, the nix config added

corsOrigins = mkOption {
  type = types.listOf types.str;
  default = [];
  example = ["https://tangled.org"];
  description = "Origins browsers may call the xrpc api from, \"*\" allows any. Empty disables CORS.";
};

Which means, by default (and anyone who just updated), the spindle won't allow any cross origin requests; and all spindle-related things on website shows error.

This is a big pitfall IMO, we should make the default ["*"], matching previous behavior.

Sign up or Sign in to add to the discussion.