1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-06-17 22:37:33 +02:00

Add CORS headers

This commit is contained in:
DarthSim
2018-04-26 17:22:31 +06:00
parent eb341c3bee
commit 04871c8b7f
4 changed files with 31 additions and 2 deletions

View File

@ -27,6 +27,7 @@ func newUnexpectedError(err error, skip int) imgproxyError {
var (
invalidSecretErr = newError(403, "Invalid secret", "Forbidden")
invalidMethodErr = newError(422, "Invalid request method", "Method doesn't allowed")
)
func stacktrace(skip int) string {