Skip to content
Back to skills

Orpc Strict Get Method

ASecurity

Only procedures explicitly accepting GET can be called via HTTP GET (CSRF protection).

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 12, 2026
devopsgitsecurity

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add ali-master/skills --skill orpc-strict-get-method --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orpc Strict Get Method?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orpc Strict Get Method
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ali-master-orpc-strict-get-method/badge)](https://www.skillsdirectory.com/skills/ali-master-orpc-strict-get-method)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: oRPC Strict GET Method Plugin
description: Only procedures explicitly accepting GET can be called via HTTP GET (CSRF protection).
license: MIT
metadata:
  author: Ali Torki
  homepage: https://github.com/ali-master
  version: "1.0.0"
---

# Strict GET Method Plugin

Enhances security by ensuring only procedures explicitly marked to accept `GET` requests can be called using HTTP `GET` for [RPC Protocol](/docs/advanced/rpc-protocol). Helps prevent certain CSRF attacks.

## When to Use

Beneficial if your application stores sensitive data (session/auth tokens) in cookies with `SameSite=Lax` or `SameSite=None`.

> Enabled by default for HTTP Adapter. You may switch to [Simple CSRF Protection](/docs/plugins/simple-csrf-protection) or disable entirely.

## How it works

Only procedures configured with `method: 'GET'` can be invoked via GET requests:

```ts
import { os } from '@orpc/server'

const ping = os
  .route({ method: 'GET' })
  .handler(() => 'pong')
```

## Setup

```ts
import { StrictGetMethodPlugin } from '@orpc/server/plugins'

const handler = new RPCHandler(router, {
  plugins: [
    new StrictGetMethodPlugin()
  ],
})
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.