WordPress LMS for Web and mobile › Forums › WPLMS Student App › typescript: src/components/question/question.ts, line: 26 › Reply To: typescript: src/components/question/question.ts, line: 26
October 27, 2018 at 9:15 am #16257
Dear Alex, Thank you for your support. When I ran Ionic serve command. Im getting bellow errors and I already added bellow lines to .htacess file in the web server. Please advice. <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> <IfModule mod_headers.c> Access-Control-Allow-Methods "*" </IfModule> </FilesMatch> Access to fetch at 'http://www.learningpal24by7.com/wp-json/wplms/v1/course/featured?per_view=5' from origin 'http://localhost:8100' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.