Skip to content
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

Not working on VPS #128

Closed
aytac opened this issue Feb 6, 2017 · 5 comments
Closed

Not working on VPS #128

aytac opened this issue Feb 6, 2017 · 5 comments

Comments

@aytac
Copy link

aytac commented Feb 6, 2017

Hi there,

I have been trying to run snap4arduino on our own VPS server. However, it gives as attached error.

  • I don't use both experimental URL and mine one at the same time
  • I have install chrome crx extension as required.
    Basically, I have clone the snap4arduino repository and upload them in /s4a folder

http://opentoydesign.com/s4a/ here is the link. All other functions fully working but Arduino blocks.

BTW. Arduino blocks are working in my local pc.

Is there any way to sort this issue out?

Thanks
capture

@bromagosa
Copy link
Owner

Hi @aytac!

The issue most probably comes from the fact that yours is not a whitelisted domain. The plugin whitelists a bunch of domains, and opentoydesign.com is not among them. This needs to be like this if we want to make sure our plugin isn't the source of a security hole.

May I ask why do you need to host it in another domain? Maybe I can help you find an alternative, or add what you find missing to the main trunk.

@aytac
Copy link
Author

aytac commented Feb 7, 2017

Hi @bromagosa,

Thanks for the quick response.
What we are trying to do is, we are going to create an open source platform where users can create their own models/toys etc with our standard parts as well as they can contribute to improve the library and models. Our main target will be Turkey and that is why we would like to use in our own server where we can change the default language and do translation for Arduino blocks.

Also users can run their design/models at the same platform which we currently try Scratchx web based experimental, scratch for web etc. However, Snap4arduino is the most reliable platform that works with Arduino on the web for us.

If we can do these on online on Snap4Arduino, there would not be an issue on our side.

We would be happy to contribute on Snap4Arduino as well.

Thanks

Aytac

@bromagosa
Copy link
Owner

I see. So if you contributed the Turkish translation to Snap4Arduino and I added a flag to define the language from the URL (&lang=tr, for instance), would that be enough for you? :)

@hakanatas
Copy link

hakanatas commented Feb 8, 2017 via email

@bromagosa
Copy link
Owner

--lang has been added at 1afd0de.

Since there's been no answer to comment 278266689, and I'm quite sure this would solve @aytac's needs, I'm closing this.

Please let me know if this isn't enough.

ToonTalk added a commit to afsheenam/UUI that referenced this issue Jan 24, 2018
…ap4Arduino

It seems there is a security issue with the Snap4Arduino CRX accessing the serial port from a domain that isn't whitelisted. See bromagosa/Snap4Arduino#128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants