-
Notifications
You must be signed in to change notification settings - Fork 44
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
Unrecognized Content-Security-Policy directive 'prefetch-src'. #627
Comments
@ramesh8830 The Could you please check these Values:
|
@supersven I am sorry, I am new to kubernetes and this wire server deployment. Please guide me how to and where to check these values. |
@ramesh8830 You should have some yaml file or files where you put all config values. The dots ( E.g. Link to I think you need to set:
This should give you Hope this helps 😃 |
|
Ah, sorry, it's a list in yaml. E.g. nginz:
replicaCount: 3
config:
ws:
useProxyProtocol: false
# images:
# nginz:
# tag: some-tag (only override if you want a newer/different version than what is in the chart)
nginx_conf:
# using prod means mostly that some internal endpoints are not exposed
env: prod
allowlisted_origins:
- app
... The default |
@supersven It worked. Thank you so much for your help Have a great day ahead. |
@ramesh8830 Welcome 😄 BTW, there are more web application you may want to use (e.g. May I close this ticket? |
According to @julialongtin this is only a change in the label. |
In the old version of wire, url for pro account is https://app.exacmple.com/auth/#createteam But in the new version it is redirecting to https://teams.example.com/register/email which lead me to 404 error |
unable to send connection request. getting below error.
|
Please help me on the above. I did not enable federation and legalhold |
I haven't tested this, but I think you can set this environment variable in the webapp helm chart to restore the previous behaviour:
|
@akshaymankar any idea about this issue. I am unable to send request to any person. When I click on the connect button, I am getting above error in the network and console of browser. Please let me know |
I think only logs from brig can tell us why it is throwing a 500. |
Please find the brig when I tried to hit the connect button.
|
I found the problem. I had a bad url for fedaration domain for gally pod values. Thanks.. |
this is not working keeps redirecting to https://teams.example.com/register/email |
Even after add these values, getting CORS issues with GIF's
|
@julialongtin @akshaymankar @supersven any help on this please?
|
look at the extra CSP headers that are being handed out by the webapp. |
I have added the necessary headers already. But still having issues with only GIF's. All others are working fine. |
can you drop your values.yml file here?
…On Fri, Jun 30, 2023 at 4:20 PM ramesh8830 ***@***.***> wrote:
Deployed the server in production environment with metallb load balancer.
But having issues with CORS.
Below are my CSP headers in webapp values.yaml
CSP_EXTRA_CONNECT_SRC: "https://*.example.com, wss://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CSP_EXTRA_IMG_SRC: "https://*.example.com, wss://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CSP_EXTRA_SCRIPT_SRC: "https://*.example.com, wss://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CSP_EXTRA_DEFAULT_SRC: "https://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CSP_EXTRA_FONT_SRC: "https://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CSP_EXTRA_FRAME_SRC: "https://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CSP_EXTRA_MANIFEST_SRC: "https://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CSP_EXTRA_OBJECT_SRC: "https://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CSP_EXTRA_MEDIA_SRC: "https://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CSP_EXTRA_PREFETCH_SRC: "https://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CSP_EXTRA_STYLE_SRC: "https://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CSP_EXTRA_WORKER_SRC: "https://*.example.com, https://*.giphy.com, https://s3.us-east-1.amazonaws.com"
CORS Errors on the browser console
Unrecognized Content-Security-Policy directive 'prefetch-src'.
Access to XMLHttpRequest at 'https://api.example.com/api-version' from origin 'https://app.example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
GET https://api.example.com/api-version net::ERR_FAILED 200
Kubernetes Version
:~# kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:23:52Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:15:20Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Wire Webapp Image used
image:
repository: quay.io/wire/webapp
tag: "2023-04-11-production.0-v0.31.13-0-bb91157"
Please help me fix the CORS issue.
I have added the necessary headers already. But still having issues with
only GIF's. All others are working fine.
—
Reply to this email directly, view it on GitHub
<#627 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEAMAATSKGBRQ2SJ5IJYT4DXN3VDDANCNFSM6AAAAAAZXFA3QI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
@julialongtin anything wrong with my values.yaml? |
nothing sticks out to me. I'll load it up into an environment and poke it here, but it will take me a few days. other priorities, etc. |
Looking for your help @julialongtin. Please help me |
have you tried it? Please help me |
any update? |
Deployed the server in production environment with metallb load balancer. But having issues with CORS.
Below are my CSP headers in webapp values.yaml
CORS Errors on the browser console
Kubernetes Version
Wire Webapp Image used
Please help me fix the CORS issue.
The text was updated successfully, but these errors were encountered: