RPC Proxy for Casper-Webclient RPC port queries
1.2K
This cors-anywhere Docker image is a proxy server designed to bypass CORS (Cross-Origin Resource Sharing) restrictions. It is used in conjunction with the Casper Web Client to allow the web client to make RPC calls to the Casper Blockchain without encountering CORS issues.
http://localhost:8080 and http://localhost:4200).To run the cors-anywhere image:
docker run -d --name cors-anywhere -p 11100:11100 gregoshop/cors-anywhere:latest
-d: Runs the container in detached mode.--name cors-anywhere: Assigns a name to the container.-p 11100:11100: Maps port 11100 of the container to port 11100 on your local machine.Once running, the proxy server can be accessed at: http://localhost:11100
If you're using Docker Compose to run the full setup, the cors-anywhere image can be configured as follows:
services:
cors-anywhere:
image: gregoshop/cors-anywhere:latest
container_name: cors-anywhere
environment:
PORT: 11100
ORIGIN_WHITELIST: |
http://localhost:8080,
http://localhost:4200,
http://127.0.0.1:8080,
http://127.0.0.1:4200
ports:
- "11100:11100"
networks:
- casper-network
This Docker image helps handle CORS issues and allows seamless communication between the Casper Web Client and the Casper Blockchain by proxying requests through port 11100.
Content type
Image
Digest
sha256:3262875fa…
Size
56.2 MB
Last updated
about 2 months ago
docker pull gregoshop/cors-anywhere