buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

error retrieving annotation collection when adding Prefer field to header #94

Closed berger-n closed 5 years ago

berger-n commented 5 years ago

when fetching annotation collection content in terminal this works:

curl http://purl.bdrc.io/anncollection/ANCWCBC2237_C001 
-H "Accept: application/json" 
-H 'Prefer: return=representation;include="http://www.w3.org/ns/oa#PreferContainedDescriptions"'

but in javascript it fails when using prefer in header: Failed to load http://purl.bdrc.io/anncollection/ANCWCBC2237_C002: Request header field prefer is not allowed by Access-Control-Allow-Headers in preflight response.

whereas without prefer in header it works

eroux commented 5 years ago

can you try with latest version? (I just deployed it)

berger-n commented 5 years ago

seems to be working fine thanks!

image

eroux commented 5 years ago

ok thanks!