w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
"Cross-Origin Request Blocked: The Same Origin Policy" Error in browser

This is an issue caused by making a cross domain request in javascript. The browser prevents this for security reasons.

In javascript you can't make requests to a different domain (including different port) by default.

Your options are to enable CORS or use a reverse proxy if you need to send requests to another domain.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.