Page 1 sur 1

Docker motioneye cross-origin

Publié : 17 mai 2021, 23:28
par docbrownaa
Salut à tous,
je vous expose mon problème.
Domoticz et motion eye sont installés sur Docker (2 container différents).
Le problème est que quand je je veux appeler un webhook depuis motion eye pour déclencher un dummy device j'ai une erreur de cross-origin.
Access to XMLHttpRequest at 'http://192.168.1.40:9797/json.htm?type= ... itchcmd=On' from origin 'http://192.168.1.242:8765' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
et quand j'essaie de mettre le header qui va bien:
Access to XMLHttpRequest at 'http://192.168.1.40:9797/json.htm?type= ... itchcmd=On' from origin 'http://192.168.1.242:8765' has been blocked by CORS policy: Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response.
Est-ce que quelqu'un a eu ce soucis ?
Merci de votre aide