add CORS options to allow S2 to hit the /version API
@@ -253,6 +253,9 @@ export const plugin = {
return h.response({ version }).code(200);
},
options: {
+ cors: {
+ origin: ['*.semanticscholar.org', '*.allenai.org'],
+ },
validate: {
params: validation.arxivId,
},
