Computer Science, asked by vikramq1321, 1 year ago

How to solve no 'access-control-allow-origin' header is present on the requested resource.

Answers

Answered by Naaz24
1

Answer:

I am trying to do authorization using JavaScript by connecting to the RESTful API build in Flask. However, when I make a request, I get the following error:

XMLHttpRequest cannot load

http://myApiUrl/login. No 'Access-Control-Allow-Origin' header is present on the requested resource origin 'null' is therefore not allowed access.


ankitgupta82: hi
Naaz24: hi
ankitgupta82: hlo
Similar questions