diff options
| author | Bracken Dawson <abdawson@gmail.com> | 2025-06-12 10:30:28 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-08-11 12:16:10 -0700 |
| commit | 925149da2009589f6f2567564e1c7370e9f93b1b (patch) | |
| tree | 60dd962d295b5513d349ee03f32fdb0b7d046531 /src/encoding/json | |
| parent | cf4af0b2f30f27b6273fa9b9f295dbdaf9cdb7bb (diff) | |
| download | go-925149da2009589f6f2567564e1c7370e9f93b1b.tar.xz | |
net/http: add example for CrossOriginProtection
It's not immediately appaerent that a method must
be used to wrap the handler, so add a basic
example to guide users to the right API.
Fixes #74121
Change-Id: I23fc3dff6fff9bf4eb29c099bc77da8c99620671
Reviewed-on: https://go-review.googlesource.com/c/go/+/681256
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/encoding/json')
0 files changed, 0 insertions, 0 deletions
