Skip to content
This repository was archived by the owner on Jun 29, 2026. It is now read-only.
This repository was archived by the owner on Jun 29, 2026. It is now read-only.

[1.x] Allow customization of HTTP requests sent by the JavaScript client. #189

Description

@YegorUdovchenko

Currently, there's no way to modify requests sent by the Spine Web client for JavaScript to the backend. The common use case is the necessity to attach security headers to all HTTP requests to the backend. To do so in Pure Photos, we initialize the client instance and then replace its internal HttpClient with our custom client that does the same things, but attaches some headers to the requests.

Another thing that is currently not configurable is that the standard HttpClient sends requests in the CORS mode. It may be OK for the most applications but should not be mandatory. Some applications may have the same origin for their frontend/backend and use regular requests in non-CORS mode.

Metadata

Metadata

Assignees

Labels

Client JSIssues related to the `spine-web-client` library

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions