AtlasOfLivingAustralia / spatial-hub

New spatial portal front end using AngularJS
https://spatial.ala.org.au/
7 stars 16 forks source link

Lists-test report CORS - No allowed credential. #438

Closed qifeng-bai closed 2 years ago

qifeng-bai commented 2 years ago

Lists-test.ala has allowed CORS, most requests from Ajax work. However, https://lists-test.ala.org.au/ws/speciesListItems/dr18463?max=1 report the above CORS error.

After removing withCredentials: true return $http.get(this.url() + "/ws/speciesListItems/" + listId, _httpDescription('items', { params: params //withCredentials: true }))

The link works.

withCredential has been used many places. This error only appears on Lists-test

The truth is still out there - X Files


Fixed by updating Nginx policy in Lists-test.ala