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

Handle CORS protection #28

Open
shastah opened this issue Sep 3, 2021 · 0 comments
Open

Handle CORS protection #28

shastah opened this issue Sep 3, 2021 · 0 comments

Comments

@shastah
Copy link

shastah commented Sep 3, 2021

As I mentioned here, aiohttp unconditionally adds Accept-Encoding: gzip, deflate header, without adding Referer or Origin, so it triggers myStrom's CORS protection

A workaround is to disable CORS protection on the device, but a better solution would be to add Referer or Origin header to avoid compromising security even more.

This protection was introduced in the following firmware versions:

  • WS2/WSE/WRS/WLL 3.82.56
  • WRB 2.59.32
  • WBP/WBS 2.74.36
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

1 participant