Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Ignore links with sameorigin/deny headers
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 1
TOPIC: Ignore links with sameorigin/deny headers
#67684
Ignore links with sameorigin/deny headers 3 Years, 8 Months ago Karma: 0
I've seen threads that suggest the following code for manually excluding domains
Code:

var ignoreSites = [
'google.com',
'yahoo.com',
'etc.org'
];

$('a[href]').each(function() {
var $a = $(this), domain = ARI_FANCYBOX_HELPER.getLinkPart($a.attr('href')).replace(/^www./i, '');
if (ignoreSites.indexOf(domain) !== -1) {
$a.addClass('no-lightbox');
}
});



is there a way to dynamically check if a domain is protected against iframe and ignore them?
The administrator has disabled public write access.
 
#67686
Re:Ignore links with sameorigin/deny headers 3 Years, 8 Months ago Karma: 760
Hello,

It requires to send a request to a domain to check CORS policy. The plugin doesn't support this ability.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1