dhbw-timetable / rablabla

https://rablabla.hobbytes.de
MIT License
3 stars 0 forks source link

Testing in a local network #102

Closed MalteBartels closed 6 years ago

MalteBartels commented 6 years ago

Currently, testing is only possible on the localhost, due to this line in Main.js:

const ajaxTarget = window.location.href.indexOf('localhost') !== -1 ? 'https://rablabla-staging.mybluemix.net' : '';

You could override that, for example to test on an iPhone in your local network. However, then you run into a CORS-error. Is it possible, to solve this some how?

hendriku commented 6 years ago

@MalteBartels I'll fix CORS Header in our staging backend soon. Therefore I'll be allowing external requests to it and force all URLs which do not match rablabla or rablabla-staging subdomain to use the staging backend. This will make it easier for you to test.