Skip to content

COLIN API: needs to accept Account-Id and X-Apikey request headers #29677

Closed

Description

@severinbeauvais

Create UI has begun sending Account-Id and X-Apikey request headers, for use with the Business API GW (and Auth API GW and Pay API GW).

However, the same Axios instance and config is used for COLIN API, and with those new headers the endpoints fail with a CORS error.

One solution is to have a separate Axios instance and config for COLIN API. However, the UI code is not ready to release, and this is presently an issue in Dev and Test and possibly Prod.

The fastest solution is to enable those headers in COLIN API.

Ref: https://github.com/bcgov/lear/blob/main/colin-api/src/colin_api/utils/util.py

PS NAICS API is fine with those new headers.

Activity

  1. added
    Entities Team
    on Jul 18, 2025
  2. severinbeauvais commented on Jul 21, 2025

    @severinbeauvais
    CollaboratorAuthor

    @OlgaPotiagalova - I found this bug in Test on Friday. It's probably in Prod, too, but I believe the COLIN API is only used by continuation in lookup for xpros, and that's not released yet. Anyway, FYI, it's in the current sprint.

  3. riyazuddinsyed commented on Jul 24, 2025

    @riyazuddinsyed
    Contributor

    Working as expected. Verified in dev.Found another issue #29778..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities TeamHigh Priority

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions