Open jmvanel opened 7 years ago
Weeger created a repository for the JS client in plain JS, jQuery , Bootstrap : https://github.com/assemblee-virtuelle/semantic_forms_client_js
One more with Mustache, and the issue is closed :)
XMLHttpRequest cannot load http://163.172.179.125:9111/authenticate?userid=sf_client&password=sf_client&confirmPassword=sf_client. Redirect from 'http://163.172.179.125:9111/authenticate?userid=sf_client&password=sf_client&confirmPassword=sf_client' to 'http://163.172.179.125:9111/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8080' is therefore not allowed access.
See doc. about service /form-data : https://github.com/jmvanel/semantic_forms/wiki/Application-development-manual#the-form-data-web-service
I propose to put this JS code in: semantic_forms/scala/forms_play/files/javascripts
with a new sample HTML in : semantic_forms/scala/forms_play/files/example2.html
The implementation can plain JS, JQuery , or mustache template.