Hi. We are using spring cloud gateway websocket proxy to attach our internal authentication service, but when accessing ethereum network through spring cloud gateway, I keep getting 403 error. I want to know what is the cause.
Works fine when just connect without the spring cloud gateway.
Thank you
spring cloud gateway application.yaml:
spring:
main:
allow-bean-definition-overriding: true
profiles: default
datasource:
driverClassName: org.h2.Driver
url: jdbc:h2:mem:testdb
username: test
password: test
platform: postgres
jpa:
database-platform: org.hibernate.dialect.H2Dialect
jackson:
serialization:
WRITE_DATES_AS_TIMESTAMPS: false
cloud:
gateway:
enabled: true
routes:
- id: ropsten-infura-ws
uri: wss://mainnet.infura.io/ws/v3/<<my-token-id>
predicates:
- Path=/ethereum/ropsten-infura-ws
server:
port: 8080
eureka:
client:
enabled: false
app:
datasource:
maximum-pool-size: 100