---
title: "Discussion on \"understanding cross-origin and CORS\" | Hashnode"
description: "Discussion on \"understanding cross-origin and CORS\". cross-origin and cross"
url: "https://hashnode.com/posts/understanding-cross-origin-and-cors/60d1b33af668475d88fed37b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [understanding cross-origin and CORS](https://fengxh.hashnode.dev/understanding-cross-origin-and-cors?utm_source=hashnode&utm_medium=feed)

cross-origin and cross

Jun 22, 2021 · 6 min read · fengxh.hashnode.dev  
Read the article

-   [#frontend](https://hashnode.com/tag/frontend)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#cors](https://hashnode.com/tag/cors)

## Written by

[fengxh](https://hashnode.com/@fengxh)

@fengxh · Shanghai, China

  
[View profile](https://hashnode.com/@fengxh)

front-end developer

## Responses 1

Markdown supported · ⌘↵ to post

[Michael J. Ryan](https://hashnode.com/@tracker1)

[Jun 22, 2021](https://hashnode.com/posts/understanding-cross-origin-and-cors/60d1b33af668475d88fed37b/comment/60d21e064e084d6e649c4633)

I would suggest replacing the XHR raw requests with fetch api, to simplify the examples, which I think distract from the topic at hand.

[Jun 23, 2021](https://hashnode.com/posts/understanding-cross-origin-and-cors/60d1b33af668475d88fed37b/comment/60d21e064e084d6e649c4633#reply-60d29633d81d4d6e9919b58e)

Thanks for your suggestion
