Instructions: Using XML for local webpages
Completion requirements
How to use XML locally and avoid CORS issues.
- Download and install Python 3. Make sure to select the 'Add Python to PATH' option
- Open Command Prompt (Start->Run->CMD)
- Change directory to the folder containing your index.html file using the syntax: cd C:\Path\To\Directory\
- run the command: python -m http.server
- Install the CORS web extension for your browser:
- Open a new tab in your web browser, go to localhost:8000
- Disable CORS using the extension (click on the extension, toggle CORS off)
- Refresh the webpage
Your webpage should now display with XML correctly.
Link to instructions: https://www.technobush.com/set-up-local-web-server-in-python/
Last modified: Wednesday, 7 April 2021, 4:45 PM