Skip to content

Conversation

@ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Oct 8, 2019

Second of two partial backports of #17319

With this package update our Axios abstraction is able to listen to the CSRF token update event and adjust the Axios default accordingly. Otherwise it would use the initial CSRF token forever.


Testing is simple: go to the apps page, run _nc_event_bus.emit('csrf-token-update', {token: 123}) and try to enable/disable an app. The request will fail. This verifies that the event is properly handled by the updated lib.

@ChristophWurst ChristophWurst added this to the Nextcloud 17.0.1 milestone Oct 8, 2019
@ChristophWurst ChristophWurst self-assigned this Oct 8, 2019
@rullzer rullzer changed the title Use @nextcloud/axios to keep the CSRF token in sync [stable17] Use @nextcloud/axios to keep the CSRF token in sync Oct 8, 2019
@rullzer rullzer force-pushed the fix/stable17-axios-package branch from fe26f46 to ea79bca Compare October 14, 2019 21:30
@rullzer
Copy link
Member

rullzer commented Oct 15, 2019

/compile amend /

Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
@npmbuildbot-nextcloud npmbuildbot-nextcloud bot force-pushed the fix/stable17-axios-package branch from ea79bca to 37cca6f Compare October 15, 2019 07:19
@rullzer rullzer merged commit a5e3f69 into stable17 Oct 15, 2019
@rullzer rullzer deleted the fix/stable17-axios-package branch October 15, 2019 12:30
@rullzer rullzer mentioned this pull request Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants