Is there a way to enable Cross-Origin Resource Sharing (CORS) for a static page hosted on GitHub Pages to allow cross-origin requests in Javascript?
For example, can we instruct GH Pages somehow to add these HTTP response headers:
Access-Control-Allow-Origin:*
Access-Control-Allow-Methods:GET,POST
Access-Control-Max-Age: 1000
Access-Control-Allow-Headers:*
Couldn't find anything in their documentation, and this ...
...GitHub Pages does not support customer server configuration files
such as .htaccess or .conf...
... doesn't sound very promising - or is there a way?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…