mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
24w10a
This commit is contained in:
parent
822b6c8cea
commit
e3cffe70d9
1 changed files with 3 additions and 0 deletions
|
|
@ -196,6 +196,9 @@ func CopyResponseHeaders(resp *req.Response, c *gin.Context, cfg *config.Config)
|
||||||
if cfg.CORS.Enabled {
|
if cfg.CORS.Enabled {
|
||||||
c.Header("Access-Control-Allow-Origin", "*")
|
c.Header("Access-Control-Allow-Origin", "*")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.Header("Age", "10")
|
||||||
|
c.Header("Cache-Control", "max-age=300")
|
||||||
}
|
}
|
||||||
|
|
||||||
func HandleError(c *gin.Context, message string) {
|
func HandleError(c *gin.Context, message string) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue