Open qjhart opened 7 years ago
For this to work, we are disabling CSRF token checking. This attack vector should be able to stopped in the browser by enabling CORS and checking the Origin header: https://stackoverflow.com/questions/24680302/csrf-protection-with-cors-origin-header-vs-csrf-token
@qjhart Even with CSRF disabled, the HTTP requests still fail without the Origin
header correctly set. I still need to investigate which part of Rails is preventing the request (I don't want to disable it, it is a good thing, just for my own understanding of the system).
We would like to have a json import methodology for file uploads.
Hydra
We have two options 'raw' json, which maps pretty much 1to1 with the Hydra inputs. In this case, we could have two inputs, one for collections, and one for works.
If the local identifier is the same, then you do an update. If the collections are included, they have to be defined before they are used. In that case, it can make sense to have two json files, oine for collections.
Finally, these JSON files *Must be formatted in json-newline format. where an entire object is on a single line, and the file can be streamed. So the file representation looks like: