ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Frappe. Cross-Origin Request Blocked on localhost


Hi! I am trying to do some integration with frappe server that is running on localhost (port 8000). My goal is to send login request from React app, that app also runs on localhost (port 3000). I am sending request using axios:

  const loginUrl = '';  
  const options = {
       usr: '',
       pwd: 'some_password'
    const config = {
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }, options, config)
    .then((response) => {
    .catch((error) => {

Traceback of werkzeug is:

INFO:werkzeug: - - [10/Jan/2019 09:53:28] "POST /api/method/login/ HTTP/1.1" 200

So, as I can understand, server is getting my request and resposing with success code?
But in browser console:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

And result of console.log(error) is

Error: "Network Error"

Is it problem with my frappe server? Thanks in advance