vsf erp integration - jigneshpshah/greycube_helpmanual GitHub Wiki

Install vuestorefront on server A

on Server B

Install ERPNext Install VCERPNext App

change nginx.conf add in location/ @webserver block

   ` add_header 'Access-Control-Allow-Origin' '*';`
    `if ($request_method = 'OPTIONS') {`

            `add_header 'Access-Control-Allow-Origin' '*';`

            `add_header 'Access-Control-Allow-Credentials' 'true';`

            `add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';`

            `add_header 'Access-Control-Allow-Headers' 'Authorization,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';`

            `add_header 'Access-Control-Max-Age' 1728000;`

            `add_header 'Content-Type' 'text/plain charset=UTF-8';`

            `add_header 'Content-Length' 0;`

            `return 204;`

    `}`