kataras / kataras/iris

[BUG] Documentation for using the CORS middleware suggests installing JWT middleware

Open
#1,790 0 comments 0 reactions 1 assignee Claimed by @kataras View on GitHub
🐞 type:bug
Dominant language
Go
Stars
25.6k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

This is a documentation bug - would be happy to open a PR for that, but I can't find the repository where documentation is edited.

On this page:

https://docs.iris-go.com/iris/security/cors#using-the-cors-middleware

Under "Using the CORS middleware", it says:

```
1. Install the middleware:

$ go get github.com/iris-contrib/middleware/jwt@master
```

This should, instead, be

```
go get github.com/iris-contrib/middleware/cors
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.