Skip to content

Commit

Permalink
fix: style
Browse files Browse the repository at this point in the history
  • Loading branch information
zaunist committed Mar 11, 2022
1 parent 81e9de6 commit 9a1dab9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/conf/conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ conf:
# log example: 2020-12-09T16:38:09.039+0800 INFO filter/logging.go:46 /apisix/admin/routes/r1 {"status": 401, "host": "127.0.0.1:9000", "query": "asdfsafd=adf&a=a", "requestId": "3d50ecb8-758c-46d1-af5b-cd9d1c820156", "latency": 0, "remoteIP": "127.0.0.1", "method": "PUT", "errs": []}
max_cpu: 0 # supports tweaking with the number of OS threads are going to be used for parallelism. Default value: 0 [will use max number of available cpu cores considering hyperthreading (if any)]. If the value is negative, is will not touch the existing parallelism profile.
# security:
# access_control_allow_origin: "http:httpbin.org"
# access_control_allow_credentials: true # support user custom cors configration
# access_control_allow_origin: "http://httpbin.org"
# access_control_allow_credentials: true # support using custom cors configration
# access_control_allow_headers: "Authorization"
# access_control-allow_methods: "*"
# x_frame_options: "deny"
Expand Down
3 changes: 2 additions & 1 deletion api/internal/filter/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
package filter

import (
"github.com/apisix/manager-api/internal/conf"
"github.com/gin-gonic/gin"

"github.com/apisix/manager-api/internal/conf"
)

func CORS() gin.HandlerFunc {
Expand Down

0 comments on commit 9a1dab9

Please sign in to comment.