superblocks-lab icon indicating copy to clipboard operation
superblocks-lab copied to clipboard

Unable to use custom endpoint that is not available via host=localhost or port=8545

Open filippsen opened this issue 6 years ago • 1 comments

Motivation

I would like to configure the target host and port.

filippsen avatar Aug 21 '18 18:08 filippsen

Setting host to a value other than current origin is a problem on its own. Making it customizable implies custom CORS settings, as experienced in previous installments e.g. devkit.

Example:

Response to preflight request doesn't pass access control check:  
No 'Access-Control-Allow-Origin' header is present on the requested resource.  
Origin 'http://<host>:<port>' is therefore not allowed access.

Added to it, while it would be possible to expose the custom network endpoint defined in src/components/app/app.js, it would demand changes to user experience, on top of provisioning room in the interface for editing host and port.

All of the above apparently deviates from current intentions.

filippsen avatar Aug 29 '18 10:08 filippsen