File tree 1 file changed +8
-4
lines changed
internal/middleware/plugins
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,16 @@ func (m *HttpProxyMiddleware) OnProcess(session *rpc.Session) error {
123
123
124
124
// add custom request headers
125
125
reqUrl := string (ctx .RequestURI ())
126
- if strings .Contains (reqUrl , "coin98.com" ) {
127
- // bypass coin98 check origin headers
126
+ if strings .Contains (reqUrl , "coin98.com" ) { // SOL
128
127
ctx .Request .Header .Set ("origin" , "https://dex.saros.xyz" )
129
- } else if strings .Contains (reqUrl , "dexlab.space" ) {
130
- // bypass dexlab check origin headers
128
+ } else if strings .Contains (reqUrl , "dexlab.space" ) { // SOL
131
129
ctx .Request .Header .Set ("origin" , "https://www.dexlab.space" )
130
+ } else if strings .Contains (reqUrl , "api.shinami.com/node/v1/sui_mainnet_37685fe6a4ea7736d445816cb59b89e6" ) { // SUI
131
+ ctx .Request .Header .Set ("origin" , "https://www.app.kriya.finance" )
132
+ } else if strings .Contains (reqUrl , "api.shinami.com/node/v1/sui_mainnet_bb70bc6a7d6d04694c4c719f0b6f27aa" ) { // SUI
133
+ ctx .Request .Header .Set ("origin" , "https://app.turbos.finance" )
134
+ } else if strings .Contains (reqUrl , "enterprise.onerpc.com/sui?apikey=cf0b901f-7b0e-460b-a0cf-4c2f784c366d" ) { // SUI
135
+ ctx .Request .Header .Set ("origin" , "https://app.naviprotocol.io" )
132
136
} else {
133
137
// TODO: add logic to add custom headers
134
138
}
You can’t perform that action at this time.
0 commit comments