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

Allow sketch to override URLs #1

Closed
reillyeon opened this issue Feb 3, 2016 · 2 comments
Closed

Allow sketch to override URLs #1

reillyeon opened this issue Feb 3, 2016 · 2 comments

Comments

@reillyeon
Copy link
Collaborator

It should be possible for a sketch to set the landing page URL and set of allowed origins. This currently requires an understanding of the WebUSB descriptor format and editing WebUSB.cpp within the library.

@sowbug
Copy link

sowbug commented Feb 3, 2016

WebLight (https://github.com/sowbug/weblight/blob/master/firmware/webusb.c#L267) stores the descriptor block in EEPROM and accepts a custom request to set it. As you say, it does require that the host know how to format a descriptor. But that could be provided by a library.

@reillyeon
Copy link
Collaborator Author

Fixed in e331fad.

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

2 participants