Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit bdaffee

Browse files
committed
Merge pull request #139 from Jaza/oembed-ajax-crossdomain
re #138: oembed: enable crossdomain AJAX for IE
2 parents df2320b + 83f7e63 commit bdaffee

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dist/js/medium-editor-insert-plugin.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,11 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
782782
Embeds.prototype.oembed = function (url) {
783783
var that = this;
784784

785+
$.support.cors = true;
786+
785787
$.ajax({
788+
crossDomain: true,
789+
cache: false,
786790
url: this.options.oembedProxy,
787791
dataType: 'json',
788792
data: {

src/js/embeds.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,11 @@
213213
Embeds.prototype.oembed = function (url) {
214214
var that = this;
215215

216+
$.support.cors = true;
217+
216218
$.ajax({
219+
crossDomain: true,
220+
cache: false,
217221
url: this.options.oembedProxy,
218222
dataType: 'json',
219223
data: {

0 commit comments

Comments
 (0)