GitBook: [#3026] No subject

This commit is contained in:
CPol 2022-02-21 15:48:28 +00:00 committed by gitbook-bot
parent bdd6a5edac
commit c7c8039587
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -106,6 +106,8 @@ As you already know, you cannot sent a POST request with the Content-Type **`app
However, you could try to send the JSON data using the content types **`text/plain` and `application/x-www-form-urlencoded` ** just to check if the backend is using the data independently of the Content-Type.\
You can send a form using `Content-Type: text/plain` setting **`enctype="text/plain"`**
If the server is only accepting the content type "application/json", you can **send the content type "text/plain; application/json"** without triggering a preflight request.
You could also try to **bypass** this restriction by using a **SWF flash file**. More more information [**read this post**](https://anonymousyogi.medium.com/json-csrf-csrf-that-none-talks-about-c2bf9a480937).
### Referrer / Origin check bypass