How to solve no 'access-control-allow-origin' header is present on the requested resource.
Answers
Answered by
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
Similar questions
Math,
6 months ago
Hindi,
6 months ago
Sociology,
1 year ago
Social Sciences,
1 year ago
Psychology,
1 year ago
Science,
1 year ago