Unable to login in REST API

127 views
Skip to first unread message

Lica Andrei

unread,
Jan 27, 2022, 3:07:51 PM1/27/22
to DSpace Technical Support
Hello,
I've just installed dspace 7 REST API backed and I configured the HTTPS support using httpd mod_http_proxy. Also, I want to mention that I'm using a self-signed certificate for HTTPS support.
The problem which I encountered is that when I'm trying to login in the REST API via web browser using HTTPS the login doesn't work. I've found in developer settings the following error message:


error.PNG
When I try to login via HTTP, everything works perfect.
Does anybody know why I can't login in REST API using HTTPS and why the error occurs?

Thanks,
Andrei

Tim Donohue

unread,
Jan 27, 2022, 3:19:54 PM1/27/22
to DSpace Technical Support
Please see our guide to common installation issues.  This "Invalid CORS request" issue is listed there.  Usually it's a configuration problem on the backend, but you might also check your Tomcat for errors thrown there.

https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-%22XMLHttpRequest..hasbeenblockedbyCORSpolicy%22or%22CORSerror%22or%22InvalidCORSrequest%22

Keep in mind there's also a common issue people have hit with self-signed SSL certificates. This also may affect you in the future if you plan to install the User Interface as well:  https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-UsingaSelf-SignedSSLCertificatecausestheFrontendtonotbeabletoaccesstheBackend

Tim
Reply all
Reply to author
Forward
0 new messages