Comments (3)
Thanks, @vt-riq please take a look.
from covid19za.
I can confirm that the CORS header is now sent correctly. A simple test can be performed by serving the below HTML file using Python's SimpleHTTPServer for example:
covid19za_56_test.html
<html>
<head>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.get('https://covid-za-api.herokuapp.com/cases/confirmed?province=GP', function(data){
$('#data').html(JSON.stringify(data));
});
});
</script>
</head>
<body>
<p id="data"></p>
</body>
</html>
When navigating to http://localhost:8000/covid19za_56_test.html, the response received contains the Access-Control-Allow-Origin: *
header, and the data is retrieved successfully.
from covid19za.
@Baadier-Sydow this should be fixed now. Please confirm.
cc @vukosim
from covid19za.
Related Issues (20)
- [Feature] Showcase Section in README - Urls changed for demo and repo for 'Covid-19 SA Data' project. HOT 4
- [Feature] Capture Vaccination Figures HOT 6
- [DATA] Extra comma in file covid19za_timeline_testing.csv HOT 1
- [DATA] provincial_gp_cumulative.csv - "date" column error HOT 1
- [Feature] FYI added tracking for Phase 2 Vaccinations HOT 3
- [DATA] Duplicate data on 24 and 25 May 2021 HOT 2
- gis_nicd_scraper HOT 24
- [DATA]Data Sources: NICD - South Africa URL error
- [Feature] Pull SAHPRA Adverse events following immunisation (AEFI) for COVID-19 vaccines
- [BUG] Scraper workflow error HOT 1
- [BUG] Challenge with scraper (R) HOT 1
- [BUG] Run failed: Scrape provincial vaccinations data from sacoronavirus.co.za HOT 2
- [BUG] Vaccination data not updated HOT 2
- [DATA] Blip in the data HOT 6
- [DATA] dsfsi covid data NICD scraper broken HOT 2
- [ENHANCE] [DATA] Update NICD Hospitalization Data HOT 13
- [Feature] Additional data sources HOT 2
- [DATA] HOT 1
- Op-Ed and Letter to the editor HOT 17
- Closing and Archiving the Project HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from covid19za.