Re: JavaScript Hydra library

On 15.06.2015 22:03, Markus Lanthaler wrote:
> As promised, I added the CORS headers. Could you please verify that I added the right ones.
>
> I've also update the event demo API: http://bit.ly/hydra-console-event-api

Thanks for the update and sorry for the late response.

The hydra-core library has now a object model, readme file and browser 
example.

I had some problems using the example with your code. I thinks it's the 
"Allow" header. It's not required or you have to add the "OPTIONS" 
method. I also update the hydra-middleware library [1]. It contains a 
CORS-enabled example. The readme explains how to run it. I had to adapt 
the default CORS configuration a little bit [2]. Maybe this is helpful 
for you.

bergi

[1] https://github.com/bergos/hydra-middleware
[2] 
https://github.com/bergos/hydra-middleware/blob/master/examples/api-demo/index.js#L42

Received on Monday, 29 June 2015 11:07:05 UTC