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

Module GinCors

Provides classes for modeling the github.com/gin-contrib/cors package.

Import path

import semmle.go.frameworks.GinCors

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

GinConfig

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

New

A new function create a new gin Handler that passed to gin as middleware