Skip to content

Develop#223

Merged
sedv8808 merged 3 commits into
productionfrom
develop
May 13, 2026
Merged

Develop#223
sedv8808 merged 3 commits into
productionfrom
develop

Conversation

@sedv8808
Copy link
Copy Markdown
Collaborator

Updated the CORS to accept dojo calls

Copilot AI review requested due to automatic review settings May 13, 2026 22:16
@sedv8808 sedv8808 merged commit 93c6dc4 into production May 13, 2026
3 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates CORS handling to support Dojo-style local browser calls, but it also includes broad regenerated API test input churn unrelated to the stated CORS change.

Changes:

  • Adds localhost/127.0.0.1:3305 to the non-production CORS allowlist.
  • Allows the X-Requested-With request header.
  • Regenerates many v1.5/v2.0 endpoint test request parameters.

Reviewed changes

Copilot reviewed 35 out of 37 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
app.js Updates CORS origins and allowed headers.
test/v2.0-data-taxa-test.js Changes generated taxa query parameters.
test/v2.0-data-speleothems-{collectionunitid}-test.js Changes generated speleothem path ID.
test/v2.0-data-spatial-lakes-test.js Changes generated lakes query parameters.
test/v2.0-data-spatial-icesheet-test.js Changes generated ice sheet age query.
test/v2.0-data-spatial-faunal-test.js Changes generated faunal query parameter.
test/v2.0-data-sites-test.js Changes generated sites query parameters.
test/v2.0-data-sites-{siteid}-datasets-test.js Changes generated site datasets path ID.
test/v2.0-data-sites-{siteid}-chronologies-test.js Changes generated site chronologies path ID.
test/v2.0-data-publications-test.js Changes generated publications query parameters.
test/v2.0-data-publications-{publicationid}-test.js Changes generated publication path ID.
test/v2.0-data-pollen-test.js Changes generated pollen query parameters.
test/v2.0-data-pollen-{id}-test.js Changes generated pollen path ID.
test/v2.0-data-occurrences-test.js Changes generated occurrences query parameters.
test/v2.0-data-geopoliticalunits-test.js Changes generated geopolitical units query parameters.
test/v2.0-data-geopoliticalunits-{gpid}-test.js Changes generated geopolitical unit path ID.
test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js Changes generated geopolitical sites path ID.
test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js Changes generated geopolitical datasets path ID.
test/v2.0-data-dbtables-test.js Changes generated dbtables query parameter.
test/v2.0-data-dbtables-{table}-test.js Changes generated dbtables path/query values.
test/v2.0-data-datasets-test.js Changes generated datasets query parameters.
test/v2.0-data-datasets_elc-test.js Changes generated ELC datasets query parameters.
test/v2.0-data-contacts-test.js Changes generated contacts query parameters.
test/v2.0-data-contacts-{contactid}-test.js Changes generated contact path ID.
test/v2.0-data-contacts-{contactid}-sites-test.js Changes generated contact sites path ID.
test/v2.0-data-chronologies-{chronid}-test.js Changes generated chronology path ID.
test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js Changes generated aggregate dataset path ID.
test/v2.0-apps-taphonomysystems-test.js Changes generated taphonomy query parameter.
test/v2.0-apps-depenvt-test.js Changes generated depositional environment query parameters.
test/v2.0-apps-constdb-datasetuploads-test.js Changes generated constituent DB uploads query parameter.
test/v2.0-apps-constdb-datasets-test.js Changes generated constituent DB datasets query parameter.
test/v2.0-apps-constdb-datasetages-test.js Changes generated constituent DB ages query parameter.
test/v1.5-data-geopoliticalunits-test.js Changes generated v1.5 geopolitical query parameters.
test/v1.5-data-geopoliticalunits-{gpid}-test.js Changes generated v1.5 geopolitical path ID.
test/v1.5-data-contacts-{contactid}-test.js Changes generated v1.5 contact path ID.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

it('should respond 200 for "A taxon or array of taxa."', function() {
var response = request('get', 'http://localhost:3001/v2.0/data/taxa', {
'qs': {"taxonname":"in labore proident","taxagroup":"est esse dolore","ecolgroup":"dolor exercitation nostrud","status":0,"limit": 10,"offset": 0},
'qs': {"taxonname":"do exercitation magna officia cupidatat","taxagroup":"sit commodo","ecolgroup":"laboris elit","status":0,"limit": 10,"offset": 0},
Comment thread app.js
},
credentials: true,
allowedHeaders: ['Content-Type', 'Authorization'],
allowedHeaders: ['Content-Type', 'Authorization', 'X-Requested-With'],
Comment thread app.js
Comment on lines +43 to +45
: [ 'http://localhost:5173', 'http://127.0.0.1:5173',
'http://localhost:3305', 'http://127.0.0.1:3305'
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants