# Support CORS Preflight requests

**URL:** <https://discuss.write.as/t/support-cors-preflight-requests/3944>\
**Category:** Feature requests\
**Tags:** ☑-accepted, writeas\
**Created:** [December 6, 2021, 3:23am UTC](https://discuss.write.as/t/support-cors-preflight-requests/3944 "2021-12-06T03:23:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaolzha](https://discuss.write.as/letter_avatar_proxy/v4/letter/x/e274bd/32.png) [@xiaolzha](https://discuss.write.as/u/xiaolzha)\
**Post date:** [December 6, 2021, 3:23am UTC](https://discuss.write.as/t/support-cors-preflight-requests/3944/1 "2021-12-06T03:23:34Z")

</div>

When a publishing request is issued by some electron or embedded webkit applications, the request may be treated as CORS request.  
A preflight request (OPTIONS request) will be sent before the real request during performing the request.  
Currently write.as responds 404 error for OPTIONS preflight requests.

Please support CORS preflight requests.

---

<div class="post-metadata">

**Author:** ![dino](https://discuss.write.as/user_avatar/discuss.write.as/dino/32/645_2.png) [@dino](https://discuss.write.as/u/dino)\
**Post date:** [December 6, 2021, 5:34am UTC](https://discuss.write.as/t/support-cors-preflight-requests/3944/2 "2021-12-06T05:34:28Z")

</div>

I think supporting this feature would actually fix my Blazor WASM apps.

---

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [December 6, 2021, 7:28pm UTC](https://discuss.write.as/t/support-cors-preflight-requests/3944/3 "2021-12-06T19:28:20Z")

</div>

We can absolutely do this. Are there any endpoints in particular we should start with for you both?

---

<div class="post-metadata">

**Author:** ![xiaolzha](https://discuss.write.as/letter_avatar_proxy/v4/letter/x/e274bd/32.png) [@xiaolzha](https://discuss.write.as/u/xiaolzha)\
**Post date:** [December 7, 2021, 1:23am UTC](https://discuss.write.as/t/support-cors-preflight-requests/3944/4 "2021-12-07T01:23:03Z")

</div>

I prefer ‘/api/posts’. My application is to publish posts from front end code. So enabling OPTIONS method for ‘/api/posts’ will be great help to get my app done.  
Thanks.

---

<div class="post-metadata">

**Author:** ![dino](https://discuss.write.as/user_avatar/discuss.write.as/dino/32/645_2.png) [@dino](https://discuss.write.as/u/dino)\
**Post date:** [December 15, 2021, 3:06am UTC](https://discuss.write.as/t/support-cors-preflight-requests/3944/5 "2021-12-15T03:06:59Z")

</div>

Thanks for considering this. Looking at the code for my Blazor apps, my most used endpoint seems to be this one:

`api/collections/{0}/posts?page={1}`

`{0}` here is the write.as alias and `{1}` is the page number.
