Skip to content

Commit

Permalink
release: 2.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Feb 3, 2023
1 parent 63ec8ae commit 4dd2397
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ FROM node:16-alpine as ts-builder
WORKDIR /app
COPY ./dist .
RUN set -evx -o pipefail \
&& apk update \
&& apk add --no-cache git \
&& rm -rf /var/cache/apk/* \
&& npm install -g pnpm \
&& pnpm install \
&& pnpm run build \
Expand Down
2 changes: 1 addition & 1 deletion app/middleware/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
func Cors() gin.HandlerFunc {
return func(c *gin.Context) {
c.Header("Access-Control-Allow-Origin", config.Web.Cors)
c.Header("Server", "busuanzi-by-xcsoft/2.7.4")
c.Header("Server", "busuanzi-by-xcsoft/2.7.5")
if c.Request.Method == "OPTIONS" {
c.Header("Access-Control-Allow-Methods", "GET, POST, HEAD, OPTIONS")
c.Header("Access-Control-Allow-Headers", "x-bsz-referer, Authorization")
Expand Down

0 comments on commit 4dd2397

Please sign in to comment.