AnsweredAssumed Answered

I cannot use rest api

Question asked by rustik rustik on Feb 1, 2017

Hi, I have added following lines of code in order to use rest api other than sugar domain:

<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "http://test.restclient.loc"
</IfModule>

However, i am still getting following error message:

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

 

I do not understand why it is not woking? Please, help me?

Outcomes