Re: CORS policy issue when using with JSON and DJANGO

2019-07-08 Thread Kevin McGraw
Consider you should not use absolute path in your request. Place your file in your static folder. Request the file relative to this static location. This would be similar to requesting other resources, such as css and js files...like this: {% load staticfiles i18n %} or in javascript: const

CORS policy issue when using with JSON and DJANGO

2019-07-08 Thread Mayank Tripathi
Hi Team, I am making quiz app, for which i wrote a function in view which will generate the json file and place it under the same location as of my all teamplates (C:/Desktop/Environment/envQuiz/quizsetup/templates/quizsetup) Now I am trying to read this json file in my HTML page via javascript