---
title: "How to solve the website encounters a \"Cross-Origin Request Blocked\" error."  
description: "How to solve the website encounters a \"Cross-Origin Request Blocked\" error."  
author: "Revati S Misra"  
published: 2023-08-01  
updated: 2023-08-02  
canonical: https://www.mindstick.com/forum/159417/how-to-solve-the-website-encounters-a-cross-origin-request-blocked-error  
category: "troubleshooting"  
tags: ["website", "error", "troubleshooting"]  
reading_time: 2 minutes  

---

# How to solve the website encounters a "Cross-Origin Request Blocked" error.

How to solve the [website](https://www.mindstick.com/articles/13110/why-copywriting-is-crucial-for-new-website-build) encounters a "[Cross](https://www.mindstick.com/forum/33892/how-to-handle-cross-thread-exception-in-winforms)-[Origin](https://www.mindstick.com/forum/160458/access-control-allow-origin-in-asp-dot-net-core-6) [Request Blocked](https://www.mindstick.com/forum/159450/solve-cross-origin-request-blocked-in-react-frontend-to-an-express-js-api)" error.

## Replies

### Reply by Aryan Kumar

A cross-origin [request](https://www.mindstick.com/blog/255/post-get-and-request-function-in-php) blocked error is a security error that occurs when a web browser prevents a request from being made to a resource from a different origin. This is done to prevent cross-site scripting (XSS) attacks.

There are a few things you can do to solve the website encounters a cross-origin requested blocked error:

1. **Check the origin of the resource.** The first step is to check the origin of the resource that you are trying to access. The origin is the domain name and port of the server that the resource is hosted on. If the origin of the resource is different from the origin of the website that you are on, then you will need to allow cross-origin requests.
2. **Allow cross-origin requests.** If you are the owner of the website, you can allow cross-origin requests by adding the `Access-Control-Allow-Origin` header to the response. The value of the header should be the origin of the resource that you want to allow requests from.
3. **Use a proxy.** If you are not the owner of the website, you can use a proxy to access the resource. A proxy is a server that acts as an intermediary between your browser and the remote server. The proxy can be configured to allow cross-origin requests.

Here are some additional tips for solving cross-origin request blocked errors:

- **Use a CORS extension.** There are a number of CORS extensions available for browsers. These extensions can help you to solve cross-origin request blocked errors by allowing cross-origin requests for specific resources.
- **Use a CORS proxy.** There are a number of CORS proxies available online. These proxies can help you to solve cross-origin request blocked errors by proxying requests to the remote server.


---

Original Source: https://www.mindstick.com/forum/159417/how-to-solve-the-website-encounters-a-cross-origin-request-blocked-error

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
