smart-classic / smart-issues

2 stars 0 forks source link

sample_container.html failing because of domain redirect #192

Closed jmandel closed 11 years ago

jmandel commented 11 years ago

http://sample-apps-v06.smartplatforms.org/sample_container/sample_container.html

The sample_container file refers to sample-apps.smartplatorms.org, but redirects are loading the app from sample-apps-v.06. This is breaking the postMessage communication (which is configured to listen only for messages from the expected origin.)

nschwertner commented 11 years ago

Will investigate

nschwertner commented 11 years ago

Links fixed here: https://github.com/chb/smart_sample_apps/commit/ef0c8e2af06192bec1a3b334a63619deaad27da4 Also, the sample container calls were returning incorrect contentType, which was confusing the SMART JS client. Fixed here: https://github.com/chb/smart_sample_apps/commit/7d969ad5ba8ed1e01717b088a51b7c3231834bee

nschwertner commented 11 years ago

Sample container now simplified, cleaned up, updated, and working as advertised: https://github.com/chb/smart_sample_apps/commit/c8f1893683b9af2dae44e4e697b77bf5fb57bc9e https://github.com/chb/smart_sample_apps/commit/0411eeb90e02fa5e58224a2826472e40eadeb6b7 https://github.com/chb/smart_sample_apps/commit/edd97cb111943e89efb0fdf11f0d3046dfd3aed4 https://github.com/chb/smart_sample_apps/commit/a07dbed489bcdda9b0ec382e33aa1580738c0972 https://github.com/chb/smart_sample_apps/commit/267f69de9ab908cae25a21569956c42b73f830eb

nschwertner commented 11 years ago

Further simplifications: https://github.com/chb/smart_ui_server/commit/6cbf8b12449976277aaacf33b69602ab6910546e https://github.com/chb/smart_sample_apps/commit/eaaeea82f7a53fbbc7e1da61d34eaa69e84979b3 https://github.com/chb/smart_sample_apps/commit/b48e95460a7381272658ed663ef4a89e8f89e9a3