-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making dapp work on GHCS #47
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a couple questions...
@@ -45,6 +45,7 @@ export const makeHttpClient = (url, fetch) => { | |||
execute: async request => { | |||
const settings = { | |||
method: 'POST', | |||
mode: 'no-cors', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is no-cors
a reasonable thing to use in all circumstances? What are the security considerations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does no-cors
do?
How do I test it? |
7e8c54c
to
e73546f
Compare
9aec24d
to
97c4db9
Compare
by way of motivation / rationale, I added a link in the description to please make sure each PR includes justification; typically by way of a reference to an issue cc @toliaqat |
.devcontainer.json
Outdated
"onAutoForward": "silent" | ||
} | ||
}, | ||
"postStartCommand": "bash -i -c 'nvm install 18.20 && nvm alias default 18.20' && bash ./make_ports_public.sh 5173 1317 26657" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rabi-siddique @amessbee I think we need a lot of testing to sure ./make_ports_public.sh 5173 1317 26657
works every time. If there is flakyness then we should address it.
97c4db9
to
ea3e985
Compare
Removed '/' at the end of the address.
=================
Instructions to run
dapp-agoric-basic
in GHCSSeveral people asked therefore I am putting it at the top.
Codespaces
tab and create a new Codespace. If you are already using Codespaces on current repo then click the "+" button on top right of theCodespaces
tab to create a new one.yarn install
in the terminal.yarn start:docker
followed byyarn docker:logs
- kill it after you seebegin
/commit
.yarn start:contract
.yarn start:ui
- a pop-up should appear in bottom right. Click open in browser if needed.=================
refs:
Changes include (for now):
CODESPACE_NAME
from env and updates inApp.tsx
mode: 'no-cors'
to makeHttpClient.jsTODO:
We (@amessbee and @rabi-siddique ) checked SWAP and it should work as is at this point. WIP.