Page MenuHomeVyOS Platform

https api cors allow-origin not applied
Open, WishlistPublicFEATURE REQUEST

Description

Hello,

It appears that CLI command:

# set service https api cors allow-origin '*'

has no effect on VyOS HTTPS API but only on GraphQL API (see T4076 issue)

https://github.com/vyos/vyos-1x/blob/0be3d1f64bea6e3b52f58a1da056179f88baff9d/src/services/vyos-http-api-server#L820

could you check?

thanks

Details

Difficulty level
Unknown (require assessment)
Version
1.4.0
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

vse-github renamed this task from https api cors allowed-origin not applied to https api cors allow-origin not applied.

Yes, this is only used by the GraphQL API.

is it possible to extend this feature to json api of vyos?

Viacheslav triaged this task as Wishlist priority.Mar 2 2024, 11:18 AM
Viacheslav changed the subtype of this task from "Bug" to "Feature Request".Apr 12 2024, 2:11 PM
Viacheslav edited projects, added VyOS 1.5 Circinus; removed VyOS 1.4 Sagitta.