Try the fastest and simplest way to install ONLYOFFICE

fails API get request after authentication

Integration questions/issues

fails API get request after authentication

Postby SandraB » Wed Sep 13, 2017 9:52 am

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!
SandraB
 
Posts: 3
Joined: Wed Sep 06, 2017 7:12 am

Re: fails API get request after authentication

Postby Maxim » Fri Sep 15, 2017 2:13 pm

Hello SandraB!
It has been fixed in 9.1.0 release.
Maxim
 
Posts: 1179
Joined: Tue Oct 11, 2016 2:34 pm


Return to API

Who is online

Users browsing this forum: No registered users and 1 guest

cron