Page MenuHomePhabricator

Automation citation insert does not work in IE 9
Closed, ResolvedPublic8 Estimated 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"

Screen Shot 2016-05-10 at 9.39.57 PM.png (542×1 px, 121 KB)

Event Timeline

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 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