Adding suppport for cross-origin requests