gs1 / GS1DL-resolver-testsuite

A test suite against which a resolver's conformance with the GS1 Digital Link spec can be assessed
Apache License 2.0
6 stars 1 forks source link

Bug in corsCheck #12

Closed JohannesFluegel closed 3 years ago

JohannesFluegel commented 3 years ago

https://github.com/gs1/GS1DL-resolver-testsuite/blob/master/GS1DigitalLinkResolverTestSuite.js#L268

Change if (data.result['access-control-allow-origin'] !== '') simply into if (data.result['access-control-allow-origin']). If this header is not set, it will result into undefined instead of empty string. And undefined always unequals empty string.

philarcher commented 3 years ago

Thank you @JohannesFluegel!