Skip to content

Overriding the API URL in the client is fragile #137

@andyhd

Description

@andyhd

If we set a data-consent-api-url attribute on any element in the DOM, it will be used to override the URL that the client JS uses for API queries. This is useful for running in different environments.

There is no defensive coding around the use of the data attribute value. This should be considered user input and treated carefully.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions