InteractiveAdvertisingBureau / iabtcf-es

Official compliant tool suite for implementing the Transparency and Consent Framework (TCF) v2.0. The essential toolkit for CMPs.
Apache License 2.0
132 stars 96 forks source link

Setting consentLanguage without forcing another fetch #450

Closed ccartesonetrust closed 3 months ago

ccartesonetrust commented 5 months ago

Version 1.5.11

Module Core

Reason Calling the changeLanguage method on the GVL class will trigger a new request, resulting in some 404 errors. There are a couple of open tickets related to this issue:

What we propose is to add a boolean value to SKIP the fetch request, like:

if (!skipFetchCall) { await this.fetchJson(url);
}

The forked PR is: https://github.com/InteractiveAdvertisingBureau/iabtcf-es/pull/449

ccartesonetrust commented 3 months ago

This issue is fixed in this PR: https://github.com/InteractiveAdvertisingBureau/iabtcf-es/pull/449.