Jeff Storey
Jeff Storey

Reputation: 57212

Does firefox block ajax requests from local files from even being sent out

I'm familiar with the Same Origin policy, but what I'm wondering is if firefox actually blocks Ajax POST requests from local files. I've been doing some automated javascript testing, and I've enabled CORS on my server, but I actually don't even see the xhr request making it to firebug, which leads me to believe that firefox is completely blocking it.

When I run the same requests in chrome and allow cross domain requests, it works well.

Upvotes: 0

Views: 1486

Answers (1)

Denys Séguret
Denys Séguret

Reputation: 382454

All modern browsers do that : they consider all requests using the file:// protocol as being cross domain.

Upvotes: 2

Related Questions