Pietro Liuzzo
2017-07-24 12:00:06 UTC
*Dear all,*
*I have a query like this in a restxq module. *
*declare*
%rest:GET
%rest:path("/BetMas/api/iiif/{$id}/manifest")
%output:method("json")
*function* *iiif:manifest*(*$id* *as **xs:string**) {
(<rest:response>
<http:response
*status*=*"200"*>
<http:header
*name*=*"Content-Type"*
*value*=*"application/json; charset=utf-8"*/>
<http:header
*name*=*"Access-Control-Allow-Origin"*
*value*=*"*"*
/>
</http:response>
</rest:response>,
*map* {"@context":= "http://iiif.io/api/presentation/2/context.json"}
)
};
But I am not able to make it actually use that rest:response to add the
http header Access-Control-Allow-Origin. Any hint on what I am doing wrong
here?
Thank you very much!
Pietro
*I have a query like this in a restxq module. *
*declare*
%rest:GET
%rest:path("/BetMas/api/iiif/{$id}/manifest")
%output:method("json")
*function* *iiif:manifest*(*$id* *as **xs:string**) {
(<rest:response>
<http:response
*status*=*"200"*>
<http:header
*name*=*"Content-Type"*
*value*=*"application/json; charset=utf-8"*/>
<http:header
*name*=*"Access-Control-Allow-Origin"*
*value*=*"*"*
/>
</http:response>
</rest:response>,
*map* {"@context":= "http://iiif.io/api/presentation/2/context.json"}
)
};
But I am not able to make it actually use that rest:response to add the
http header Access-Control-Allow-Origin. Any hint on what I am doing wrong
here?
Thank you very much!
Pietro
--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)
https://uk.linkedin.com/in/pietroliuzzo