We have changed our JIRA server to run behind a nginx that strips https, and send the request to JIRA via http. And we also changed the JIRA base URL to https://.
An error occurs when calling the issue collector:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://jira.ourserver.com') does not match the recipient window's origin ('https://jira.ourserver.com').
When the baseURL is changed to https:// i would suppose that it would be changed in the javascript requested by the jQuery.ajax call.
How can we fix this issue?
Hi @Kasper Bakmannspecify
you
in server.xml
options scheme/proxyName/proxyPort?
Exactly, in
<Connector
of your server.xml (Apache tomcat under config dir)
Add
proxyName="jira.ourserver.com" proxyPort="443" scheme="https" secure="true"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Viktor Okolot [Polontech] @Sash [ConfiForms] I have updated the description of the problem. We do not use a certificate on our JIRA server. Sorry for misinforming you .. And thanks for the kind replies.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Viktor Okolot [Polontech] + @Sash [ConfiForms] + @Steven Behnke .. Changing the Connector with proxyPort and proxyName did the trick as you adviced me to do. Thank you guys!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see. I read your Question more closely.
Viktor and Sash are both correct, you need to inform Tomcat that it is being proxied to an SSL connection on port 443 (https). Please do follow their directions about modifying the server.xml
file.
Secondly, you could also try entering the reference to JIRA in your script so it looks like so – //jira.ourserver.com/
. Notice the lack of 'http:' or 'https:'. Not sure if that will help your proxy issue though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Steven Behnke
Thanks for your quick reply.
We call the script via jQuery.ajax and the url looks like this:
I can not see that should cause any problems - do you?
I have tried to recreate the issue collector and the script created by JIRA suggests using http://jira... not https:// .. hmm that seems strange, is there another base url we should set?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not certain of the strategy to accomplish this. Did you check the javascript file you're downloading inline? The script references HTTP and HTTPS and it looks like this –
<script type="text/javascript" src="https://jira.domain.com/s/79b3b8767086874764c0e633d4d3f1c2-T/en_USxto4uu/64019/67/1.4.25/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=3a44c071"></script>
Perhaps you just need to delete and recreate the issue-collector?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.