Closed NickColley closed 1 year ago
I don't think a need has ever come up before, I've opened https://github.com/alphagov/content-store/pull/1011 to add the header as it seems like it should allow this.
I can't make any guarantees for future consistency on this, I don't think anyone is taking our API offerings seriously as external resources.
That is very reasonable, appreciate your time Kevin!
Can we close this issue since #1011 was merged?
Yes it all is working!
I have built a JavaScript API for the Search API and Content APIi, but there is an inconsistency between the two.
In Node.js both succeed as expected. In the browser only Search API succeeds. This is because Content API does not have the correct headers set to allow for client-side requests.
https://jsbin.com/cidexadexu/edit?html,console,output
Browser console:
cc @kevindew thoughts on this? :)