SkillAgentSearch skills...

Cors

Package cors is a middleware that provides the Cross-Origin Resource Sharing for Flamego

Install / Use

/learn @flamego/Cors
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

cors

GitHub Workflow Status GoDoc

Package cors is a middleware that provides the Cross-Origin Resource Sharing for Flamego.

Installation

go get github.com/flamego/cors

Getting started

package main

import (
	"github.com/flamego/cors"
	"github.com/flamego/flamego"
)

func main() {
	f := flamego.Classic()
	f.Use(cors.CORS())
	f.Get("/", func(c flamego.Context) string {
		return "ok"
	})
	f.Run()
}

Getting help

License

This project is under the MIT License. See the LICENSE file for the full license text.

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated7mo ago
Forks3

Languages

Go

Security Score

82/100

Audited on Aug 3, 2025

No findings