Skip to content

bug: can't call external APIs without defining them in resourceServerURLs even when the storage is not webWorker #270

@brionmario

Description

@brionmario

Description

External API calls fail unless listed in resourceServerURLs, even when SDK storage is not webWorker. This adds unnecessary work for developers, as resourceServerURLs is better kept optional for webWorker mode, where stricter restrictions make sense.

External APIs should work without listing them in resourceServerURLs when storage is not webWorker. The configuration should remain optional and primarily used for webWorker mode.

We need to rename resourceServerURLs to a more user-friendly term like allowedExternalUrls or webWorkerAPIs to clarify that it is optional and primarily relevant for webWorker mode.

Steps to Reproduce

  1. Configure the SDK with storage type localStorage or sessionStorage.
  2. Call an external API not listed in resourceServerURLs.
  3. Observe that the call fails.

Please select the area the issue is related to

@asgardeo/react

Version

0.6.12

Environment Details (with versions)

N/A

Reporter Checklist

  • I have searched the existing issues and this is not a duplicate.
  • I have provided all the necessary information.
  • I have tested the issue on the latest version of the package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions