-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config for Cors headers seems lost during the config refactoring #1340
Comments
need to discuss whether it makes sense and if not, what values need to be embedded there and where they are configured |
I think it is configured in |
Still relevant and we should keep it in close sight 👍 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
We need a clear input here on what we want to do in such scenario, once we have an actionable item we should schedule it and just do it ™️ |
Re-opening as the server still replies with
|
@SwikritiT This should be configurable. I can see the values in the ocis config file examples. I fear that the ENV variables have been lost in the config refactoring. |
Correct Needs fixing. |
The config from this PR https://github.com/owncloud/ocis/pull/2666/files has somehow been "refactured out" 😄 |
@mmattel I'll take A look and ping you in the PR |
I have started
@butonic Is there anything I missed on the setup for ocis? |
@grgprarup please reopen if this is not fixed on master. |
Seems its fixed. curl https://localhost:9200/ocs/v2.php/config -u admin:admin -H "Origin: https://aphno.badal" -vk
* Trying 127.0.0.1:9200...
* Connected to localhost (127.0.0.1) port 9200 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: O=Acme Corp; CN=OCIS
* start date: Nov 9 07:01:42 2022 GMT
* expire date: Nov 9 07:01:42 2023 GMT
* issuer: O=Acme Corp; CN=OCIS
* SSL certificate verify result: self-signed certificate (18), continuing anyway.
* Server auth using Basic with user 'admin'
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET /ocs/v2.php/config HTTP/1.1
> Host: localhost:9200
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.81.0
> Accept: */*
> Origin: https://aphno.badal
>
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Origin: https://aphno.badal
< Access-Control-Expose-Headers: Location
< Content-Length: 255
< Content-Type: text/xml; charset=utf-8
< Date: Wed, 09 Nov 2022 07:06:29 GMT
< Ocs-Api-Version: 2
< Vary: Origin
<
<?xml version="1.0" encoding="UTF-8"?>
* Connection #0 to host localhost left intact
<ocs><meta><status>ok</status><statuscode>200</statuscode><message>OK</message></meta><data><version>1.7</version><website>ownCloud</website><host>localhost:9200</host><contact></contact><ssl>false</ssl></data></ocs>% |
when setting the origin header e.g.
curl http://localhost:9140/ocs/v2.php/config -u user0:123456 -H "Origin: https://aphno.badal" -v
The server replies with
Access-Control-Allow-Origin: *
The text was updated successfully, but these errors were encountered: