Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 861ae1c

Browse filesBrowse files
committed
updated
1 parent 47ae258 commit 861ae1c
Copy full SHA for 861ae1c

File tree

3 files changed

+8
-4
lines changed
Filter options

3 files changed

+8
-4
lines changed

‎go.mod

Copy file name to clipboardExpand all lines: go.mod
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ require (
77
github.com/gin-gonic/gin v1.7.7
88
github.com/go-redis/redis/v8 v8.11.5
99
github.com/golang-jwt/jwt v3.2.2+incompatible
10+
github.com/k3a/html2text v1.0.8
1011
github.com/spf13/viper v1.11.0
12+
github.com/thanhpk/randstr v1.0.4
1113
go.mongodb.org/mongo-driver v1.9.1
1214
golang.org/x/crypto v0.0.0-20220513210258-46612604a0f9
15+
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
1316
)
1417

1518
require (
@@ -25,7 +28,6 @@ require (
2528
github.com/golang/snappy v0.0.1 // indirect
2629
github.com/hashicorp/hcl v1.0.0 // indirect
2730
github.com/json-iterator/go v1.1.12 // indirect
28-
github.com/k3a/html2text v1.0.8 // indirect
2931
github.com/klauspost/compress v1.13.6 // indirect
3032
github.com/leodido/go-urn v1.2.1 // indirect
3133
github.com/magiconair/properties v1.8.6 // indirect
@@ -41,7 +43,6 @@ require (
4143
github.com/spf13/jwalterweatherman v1.1.0 // indirect
4244
github.com/spf13/pflag v1.0.5 // indirect
4345
github.com/subosito/gotenv v1.2.0 // indirect
44-
github.com/thanhpk/randstr v1.0.4 // indirect
4546
github.com/ugorji/go/codec v1.2.7 // indirect
4647
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
4748
github.com/xdg-go/scram v1.0.2 // indirect
@@ -52,7 +53,6 @@ require (
5253
golang.org/x/text v0.3.7 // indirect
5354
google.golang.org/protobuf v1.28.0 // indirect
5455
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
55-
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df // indirect
5656
gopkg.in/ini.v1 v1.66.4 // indirect
5757
gopkg.in/yaml.v2 v2.4.0 // indirect
5858
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect

‎go.sum

Copy file name to clipboardExpand all lines: go.sum
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
153153
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
154154
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
155155
github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g=
156+
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
156157
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
157158
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
158159
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
@@ -166,6 +167,7 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr
166167
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
167168
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
168169
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
170+
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
169171
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
170172
github.com/k3a/html2text v1.0.8 h1:rVanLhKilpnJUJs/CNKWzMC4YaQINGxK0rSG8ssmnV0=
171173
github.com/k3a/html2text v1.0.8/go.mod h1:ieEXykM67iT8lTvEWBh6fhpH4B23kB9OMKPdIBmgUqA=
@@ -218,7 +220,9 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
218220
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
219221
github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8=
220222
github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE=
223+
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
221224
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
225+
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
222226
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
223227
github.com/spf13/afero v1.8.2 h1:xehSyVa0YnHWsJ49JFljMpg1HX19V6NDZ1fkm1Xznbo=
224228
github.com/spf13/afero v1.8.2/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo=

‎main.go

Copy file name to clipboardExpand all lines: main.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func main() {
107107
}
108108

109109
corsConfig := cors.DefaultConfig()
110-
corsConfig.AllowOrigins = []string{config.Origin}
110+
corsConfig.AllowOrigins = []string{config.Origin, "http://127.0.0.1:3000"}
111111
corsConfig.AllowCredentials = true
112112

113113
server.Use(cors.New(corsConfig))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.