-
Notifications
You must be signed in to change notification settings - Fork 3
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
Test if blockstack works well within a Chrome extension #3
Comments
After some tests, blockstack does not work inside extensions because:
I will try to go with a "inject code" approach instead and will report back. |
I've tried the "inject code" approach and hit another issue, and this is a very hard one..
I've never hit this issue before because I've been using some demo applications that already had a server in place with that header. Nevertheless, we can't get around this because we do not control the servers from the sites where people will be using Discussify. This is a major issue.. I'm considering switching to uport again and put the "app-secret" in the source-code until they add a p2p flow as discussed here: uport-project/docs#18 (comment). //cc @diasdavid |
This is unfortunate. What if, instead, we inject an iframe to something that we're hosting, which we would control and add CORS? |
@marcooliveira that can work indeed, I will try it out. |
I've managed to make it work with the iframe strategy that @marcooliveira pointed out. Here's a video: To have it registered, here's the list the issues of this solution:
|
Possible solution for the CSP blocking: https://transitory.technology/browser-extensions-and-csp-headers/ |
The plan is to have discussify as:
Making an extension is probably the easiest of all and goes well with the amount of features the MVP will have. Still, we must be sure that blockstack authentication works well with extensions.
The text was updated successfully, but these errors were encountered: