Hi,
Let me start off with saying that I'm not a coder. I know HTML & CSS and that's it.
Watching the Appery video's however gave me the idea that I could actually build real apps. And with that realize an idea I had
Here's what I want to do:
Use the dutch railroad RestAPI to connect travellers.
The API docs can be found here: http://www.ns.nl/api/api
Sample request: http://webservices.ns.nl/ns-api-avt?s...
(only in dutch, sorry)
So here's my problem:
This 5 minute video explains nicely how to use an external API but it uses a key for authentication. the NS API uses a username/password login.
I tried to implement what I found on the bottom of this post:
https://devcenter.appery.io/documenta...
add external resource
add the javascript
add the service on load of the page
add the javascript to the Authorization paramater. (which I renamed to Access-Control-Allow-Origin later because of the error message bellow)
Unfortunately this was to no avail. When I look in console I get the following error:
XMLHttpRequest cannot load http://webservices.ns.nl/ns-api-avt. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://appery.io' is therefore not allowed access. The response had HTTP status code 501.
Any thoughts on making this work would be greatly appreciated!