Module GinCors
Provides classes for modeling the github.com/gin-contrib/cors package.
Import path
import semmle.go.frameworks.GinCorsPredicates
| packagePath | Gets the package name |
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 |