This has been archived because it contains (CVE-2022-36359)[https://nvd.nist.gov/vuln/detail/CVE-2022-36359] and I've not upgraded this repo at all. Please use it for whatever educational purposes it may serve, but do not run this in Production nor think it's the latest guidance.
Author: Aaron Yong
License: Apache 2.0
CORS or Cross Origin Resource Sharing requires specific configurations on the backend and frontend. Personally I didn't really have much experience with CORS, and made it a weekend project in order to get a better understanding of CORS.
###Prerequisites:
- Python 2.7.*
- Django
- (Optional) virtualenv
- (Optional) virtualenvwrapper (Mac OS X, Linux)
- (Optional) virtualenvwrapper-powershell (Windows)
- Chrome, for the best simulation of mobile devices
- Node.js v0.10.*
- Bower
- Gulp.js
- Ionic Framework
###Django
- Navigate into the
websitedirectory and runpip install -r ./requirements/dev.txtto install backend dependencies. - Navigate into the
website/corstutorialdirectory and run:
python manage.py migrate
[Enter superuser credentials]
- Run the server (uses
corstutorial.settings.devby default, do not run this setting on production):
python manage.py runserver_plus
- Use your web browser to navigate to http://localhost:8000
###Ionic
npm installthenbower installionic serve
- Production settings for Django
- Production settings for Ionic
- Proper step-by-step tutorial
- Django
- Django REST Framework
- Django CORS headers
- Django Extensions
- Django Material
- Ionic Framework
- AngularJS
- SASS