---
title: "Ronak (@ronakmistry) | Hashnode"
description: "Developer. Read the latest articles by Ronak on Hashnode."
url: "https://hashnode.com/@ronakmistry"
---

@ronakmistry

# Ronak

@ronakmistry · Toronto · Joined October 2018

Developer

[Website](https://www.ronakmistrye.me/)

## Comments

[Awesome tips : ) we can also use ramdajs for some cases as well.](https://hashnode.com/posts/dump-the-if-else-use-these-short-hand-techniques-instead/5ea5f8830135fc417662fbeb/comment/5ea828b8927cd8e125d847e5)

Comment · Article · Apr 28, 2020 · [Dump the if-else, use these short-hand techniques instead.](https://hashnode.com/posts/dump-the-if-else-use-these-short-hand-techniques-instead/5ea5f8830135fc417662fbeb)

[And also can try approaching this problem by testing via postman or insomnia?](https://hashnode.com/forums/thread/can-we-use-session-cookies-cross-origin/comment/5ea59af10135fc417662f8db#reply-5ea5a4600135fc417662f960)

Reply · Thread · Apr 26, 2020 · [Can we use session cookies cross-origin?](https://hashnode.com/forums/thread/can-we-use-session-cookies-cross-origin)

[Is it possible to share your code via github (or any other version control)?](https://hashnode.com/forums/thread/can-we-use-session-cookies-cross-origin/comment/5ea59af10135fc417662f8db#reply-5ea5a3a512892a3c760b8f34)

Reply · Thread · Apr 26, 2020 · [Can we use session cookies cross-origin?](https://hashnode.com/forums/thread/can-we-use-session-cookies-cross-origin)

[Yes, you can use session cookies cross-origin. but be careful because it can lead to vulnerability issues as well. For example - your back-end is hosted on api.back-end.com and you want to provide session to your front-end project which is hosted on app.front-end.com. so on back-end you need to provide response headers Access-Control-Allow-Origin: app.front-end.com Set-Cookie:'SESSIONID=yourSessionId; HttpOnly so that it will only send session cookies to this front-end app. if you provide Access-Control-Allow-Origin: \* which will provide session to all apps (which is not preferable because some other website can request your back-end and access session ids to play with your back-end). To make it more secure you can add credentials: include inside your request header with fetch in the front-end app. this would block Javascript to access browser cookies via Javascript broswer apis.](https://hashnode.com/forums/thread/can-we-use-session-cookies-cross-origin/comment/5ea4fc250135fc417662f4c2)

Comment · Thread · Apr 26, 2020 · [Can we use session cookies cross-origin?](https://hashnode.com/forums/thread/can-we-use-session-cookies-cross-origin)
