Preflight request to raw.githubusercontent.com for fetching azuredeploy.json file(ARM template) fails

Preflight request from https://portal.azure.com to fetch ARM template(azuredeploy.json) - which is public repo(raw.githubusercontent.com) is failing. Please let me know is there any way to fix it?