Allow CORS requests to token endpoint (#15519)
* Allow CORS requests to token endpoint * Tests * Fuck emulated hue * Clean up * Only cors existing methods
This commit is contained in:
1 parent
ca0d4226aa
commit
2fc0d83085
9 files changed
+59
-23
No files matched your search
@@ -130,10 +130,10 @@ def hue_client(loop, hass_hue, aiohttp_client):
|
||||
}
|
||||
})
|
||||
|
||||
HueUsernameView().register(web_app.router)
|
||||
HueAllLightsStateView(config).register(web_app.router)
|
||||
HueOneLightStateView(config).register(web_app.router)
|
||||
HueOneLightChangeView(config).register(web_app.router)
|
||||
HueUsernameView().register(web_app, web_app.router)
|
||||
HueAllLightsStateView(config).register(web_app, web_app.router)
|
||||
HueOneLightStateView(config).register(web_app, web_app.router)
|
||||
HueOneLightChangeView(config).register(web_app, web_app.router)
|
||||
|
||||
return loop.run_until_complete(aiohttp_client(web_app))
|
||||
|
||||
|
||||
Reference in new issue
Block a user