Skip to content

Copy for LLM button not working #167

@rickycambrian

Description

@rickycambrian

I noticed that on the website the Copy for LLM button isn't working correctly:
image

I tried locally and it works:
image

I think the vercel.json config currently blocks clipboard-write with clipboard-write=(). I think the version that would allow clipboard-write for same-origin only would use clipboard-write=(self)` on the deployment would look something like this:

{
  "build": {
    "env": {
      "YARN_VERSION": "1.22.22"
    }
  },
  "headers": [
    {
      "source": "/(.*)",
      "headers": [
        {
          "key": "Permissions-Policy",
          "value": "clipboard-write=(self)"
        }
      ]
    }
  ]
}

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