# Work Around to posting

**URL:** <https://meta.discourse.org/t/work-around-to-posting/44413>\
**Category:** SSO\
**Created:** [5월 17, 2016, 11:42오후 UTC](https://meta.discourse.org/t/work-around-to-posting/44413 "2016-05-17T23:42:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![balthatrix](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@balthatrix](https://meta.discourse.org/u/balthatrix)\
**Post date:** [5월 17, 2016, 11:42오후 UTC](https://meta.discourse.org/t/work-around-to-posting/44413/1 "2016-05-17T23:42:54Z")

</div>

I’m noticing a couple api calls I can’t make without a csrf token:

**Wanting to initialize a new user here** :  
client.sync\_sso (new\_user\_info)  
-and-  
**Wanting to change an existing username here** :  
client.put(“/users/#{old\_un}/preferences/username”, {new\_username: new\_un, username: old\_un})

Both of these are rejected by my discourse server noting lack of csrf token.  
Is there a workaround for this or is this just an inherently wrong approach?

---

_[View the full topic](https://meta.discourse.org/t/work-around-to-posting/44413)._
