yes, the UI only accepts valid and specific domain adresses. But when I found and downloaded the config.php, I found that there was no entry ‘cors.allowed-domains’, which I then created myself. After uploading my adjusted config.php, I didn’t get the CORS-reject Error response anymore.
Config.php can be reached via ftp on the server you are running your openCloud application on, in the case of my server (xenonserver.de)
/apps/<username>/config/config.php
open with editor, looks like this:
<?php
$CONFIG = array (
'instanceid' => 'aninstanceid',
'passwordsalt' => 'apassword',
'secret' => 'asecret',
!!!'cors.allowed-domains' => [
'http://localhost:8080',
'http://www.domain1.com',
'http://www.domain2.com',
*
*
*
'http://www.domains.com'
],!!!
'trusted_domains' =>
array (
0 => 'trustedDomain.com',
),
'datadirectory' => '/var/www/datadirectory/path',
'overwrite.cli.url' => 'http://thedomainyoureusing.com',
'dbtype' => 'sqlite3',
'version' => '10.2.0.5',
'logtimezone' => 'UTC',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/ownCloud/path',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/externalapps/path',
'url' => '/apps-external',
'writable' => true,
),
),
'installed' => true,
);
I edited some stuff so my data can’t be glanced. the section that is enclosed by !!! is what needs to be edited in with the appropriate data, and then uploaded to it’s source location (ftp is easiest imho, also assuming you’re an admin)
THIS IS ONLY A PARTIAL SOLUTION TO MY PROBLEM: I AM STILL DENIED ACCESS (401 - UNAUTHORIZED)
I’ve been combing the documentation, and I can’t find any information on how to handle my authorization header. I’ve also been scouring the git pages for the android client to see how it was handled there, but I can’t really make any sense of it, or at least find out what I’m doing wrong. If I can’t get this up and running, I am screwed