fix for CORS when getting metadata (the metadata attributes structure has changed, sorry :/)