-
Notifications
You must be signed in to change notification settings - Fork 393
Closed
Labels
apiRelated to issues dealing with the Malcolm REST APIRelated to issues dealing with the Malcolm REST APIbugSomething isn't workingSomething isn't workingnetboxRelated to Malcolm's use of NetBoxRelated to Malcolm's use of NetBox
Milestone
Description
A user indicated CSRF issues doing PUT/POST commands to the https:///netbox/api endpoint and also noted an inconvenience using https:///mapi/netbox, namely that since 3rd-party libraries always append /api to the URL it makes it hard to use the /mapi/netbox passthrough (which is already doing the /api already).
So two tasks for this:
- investigate the CSRF issues for PUT/POST (
CSRF_TRUSTED_ORIGINSwill likely need to be set, but we should make sure it works as long as it is set correctly) - adjust the
/mapi/netboxpassthrough to either not prepend the/apito the request automatically, or to keep the current behavior in other cases but detect if/apiis already on there, then don't append it.
Metadata
Metadata
Assignees
Labels
apiRelated to issues dealing with the Malcolm REST APIRelated to issues dealing with the Malcolm REST APIbugSomething isn't workingSomething isn't workingnetboxRelated to Malcolm's use of NetBoxRelated to Malcolm's use of NetBox
Type
Projects
Status
Released