CodeQL library for Go
codeql/go-all 5.0.3 (changelog, source)
Search

Module RsCors

Provides classes for modeling the github.com/rs/cors package.

Import path

import semmle.go.frameworks.RsCors

Predicates

packagePath

Gets the package name github.com/gin-gonic/gin.

Classes

AllowAllOriginsWrite

A write to the value of Access-Control-Allow-Origins of value “*”, overriding AllowOrigins.

AllowCredentialsWrite

A write to the value of Access-Control-Allow-Credentials header.

AllowOriginsWrite

A write to the value of Access-Control-Allow-Origins header.

New

The New function that creates a new rs Handler.

RsOptions

A variable of type Options that holds the headers to be set.