Page 1 of 1

fails API get request after authentication

PostPosted: Wed Sep 13, 2017 9:52 am
by SandraB
Please help me with some simple issue that is just not working.
After a sucessful authentication, I try to make a simple API get request and I get the following error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://myPortal/api/2.0/portal. (Reason: CORS header 'Access-Control-Allow-Origin' does not match '*, *').


The request looks like this:
GET http://myPortal/api/2.0/portal
Header:
Accept application/json
Accept-Encoding gzip, deflate
[ b]Accept-Language[/b] en-GB,q=0.8,ro;q=0.6,en-US;q=0.4,en;q=0.2
Authorization myToken
Content-Type application/json
DNT 1
Host myPortal
Origin http://localhost:51363
Referer http://localhost:51363/Account/Login
User-Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0

Thank you very much for your help!

Re: fails API get request after authentication

PostPosted: Fri Sep 15, 2017 2:13 pm
by Maxim
Hello SandraB!
It has been fixed in 9.1.0 release.