We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I tried to build with the cors plugin by following steps (from https://github.com/caddyserver/caddy/tree/v1#install), the cors plugin cannot be compiled in:
main.go
package main import ( "github.com/caddyserver/caddy/caddy/caddymain" _ "github.com/captncraig/cors" _ "github.com/caddyserver/forwardproxy" ) func main() { // optional: disable telemetry // caddymain.EnableTelemetry = false caddymain.Run() }
Run go mod init caddy
go mod init caddy
Run go get -u github.com/caddyserver/caddy
go get -u github.com/caddyserver/caddy
Run go build
go build
After the Caddy binary generated, I ran ./caddy -plugins and didn’t see the http.cors plugin listed, however the http.forwardproxy plugin can be seen.
./caddy -plugins
http.cors
http.forwardproxy
The text was updated successfully, but these errors were encountered:
Same here...
package main import ( "github.com/caddyserver/caddy/caddy/caddymain" _ "github.com/nicolasazrak/caddy-cache" _ "github.com/captncraig/cors" //_ "" ) func main() { // optional: disable telemetry caddymain.EnableTelemetry = false caddymain.Run() }
Cache Plugin is there, cors plugin missing.
May be relevant difference:
Is this plugin compatible with armv7 architectures? (RaspberryPi)
Sorry, something went wrong.
This may be a tad late for @tufu9441 but I experimented a tad and found that using
_ "github.com/captncraig/cors/caddy" worked for me, that gets it on teh list for me
_ "github.com/captncraig/cors/caddy"
this is fixed by @Silver-Golden comment, can be closed afaik
No branches or pull requests
When I tried to build with the cors plugin by following steps (from https://github.com/caddyserver/caddy/tree/v1#install), the cors plugin cannot be compiled in:
main.go
file as:Run
go mod init caddy
Run
go get -u github.com/caddyserver/caddy
Run
go build
After the Caddy binary generated, I ran
./caddy -plugins
and didn’t see thehttp.cors
plugin listed, however thehttp.forwardproxy
plugin can be seen.The text was updated successfully, but these errors were encountered: