This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Bad request 400 - HTTP API
#1
Hi, we are using http api / base auth in our web application to communicate with Logic Machine.  Everything worked just fine, but with latest LM fw update, we cannot log in from the web app to the LM anymore. Basically the CORS setting works ok, we have set the domain of the web app in the Services / Http server screen. The OPTIONS request from the web app gets the response 200 -> OK, but the following GET request just dies, LM returning an 400 - Bad request error. 
Nothing is logged anywhere, nor in the nginx error log (debug level). 
We traced that the request hits the lp-handler.lua, but what happens there is unknown (it's either bytecode, or otherwise not readable).
Before the introduction of the CORS setting in the system menu of the LM, the web app was working fine.
Our LM version:
HW: LM5 Lite (i.MX6)
SW: 20211215

Does anybody have similar experience? What would you suggest as next step in debugging? Is it possible to obtain the lp-handler.lua source?

Thank you for any help or suggestion.
Peter
Reply
#2
CORS seems to broken in this firmware. We can provide beta firmware with fixed CORS.
Reply
#3
Hi, ok, that would be much appreciated. Thank you.
Reply
#4
Hi. When aproximately can we expect this new FW please? 
Do you have my email address? Thx.
Reply
#5
Beta FW will be ready by the end of this week. Should it be sent to the email that you use for your forum account?
Reply
#6
(21.09.2022, 13:17)admin Wrote: Beta FW will be ready by the end of this week. Should it be sent to the email that you use for your forum account?

Yes, please. Thank you.
Reply
#7
Hi admin, can you share the firmware here too? We got this problem too and we wanna try solve it.
Reply
#8
This is beta FW for LM5M3: https://dl.openrb.com/lm-22-imx6/lm5m3-20220922.img
If you need it for another HW model then let me know.
Reply
#9
(06.10.2022, 11:29)admin Wrote: This is beta FW for LM5M3: https://dl.openrb.com/lm-22-imx6/lm5m3-20220922.img
If you need it for another HW model then let me know.

Thanks for the fast response, our HW is LM5 Lite (i.MX6)
Reply
#10
Then you good to go with this version.
------------------------------
Ctrl+F5
Reply
#11
(07.10.2022, 07:25)Daniel Wrote: Then you good to go with this version.

Thank you. We will go further try this and i'll let you know if we unlock the situation.

Is there any guide about the 4 CORS origin string available to be written under the HTTP Server section in the LM5 config, eventually? 

Please let me know.
BR
Reply
#12
(07.10.2022, 18:07)Zen Wrote: Is there any guide about the 4 CORS origin string available to be written under the HTTP Server section in the LM5 config, eventually? 

Any news about this?
(07.10.2022, 18:07)Zen Wrote: Is there any guide about the 4 CORS origin string available to be written under the HTTP Server section in the LM5 config, eventually? 

Please let me know.
BR
Reply
#13
Google is your friend Smile
https://en.wikipedia.org/wiki/Cross-orig...ce_sharing
CORS origin 1 – 4
Up to 4 IP addresses/hosts which can use CORS
------------------------------
Ctrl+F5
Reply


Forum Jump: