Page MenuHomePhabricator

Automation citation insert does not work in IE 9
Closed, ResolvedPublic8 Story Points

Description

Steps to reproduce:

  1. Open VE for a page using IE 9
  2. Go to Cite>Automatic
  3. Type in a valid URL
  4. Click on "Generate"

Observed Result:
No citation gets created instead it shows the message "We couldnt make a citation for you. Ypu can create one manually using the "Manual" tab above"

Details

Related Gerrit Patches:
mediawiki/extensions/Citoid : masterFix IE9 cross domain request

Event Timeline

Ryasmeen created this task.May 10 2016, 8:40 PM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptMay 10 2016, 8:40 PM

Adding $.support.cors = true fixes the issue but changing a global setting would be evil. I tried using mw.ForeignApi, but I get

A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true.

in all browsers

Jdforrester-WMF triaged this task as Medium priority.May 11 2016, 8:28 PM
Jdforrester-WMF added a project: Citoid.
Jdforrester-WMF set the point value for this task to 8.

Tagging some services people as this might require changes to Citoid headers?

Adding $.support.cors = true fixes the issue but changing a global setting would be evil.

Looking at jQuery's source code, the same can be achieved by passing crossDomain: false in AJAX options (even though it is a cross-domain request).

I tried using mw.ForeignApi, but I get
A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true.
in all browsers

I misled you when I suggested this, it won't help.

Change 289865 had a related patch set uploaded (by Esanders):
Fix IE9 cross domain request

https://gerrit.wikimedia.org/r/289865

Change 289865 merged by jenkins-bot:
Fix IE9 cross domain request

https://gerrit.wikimedia.org/r/289865