ngx-admin icon indicating copy to clipboard operation
ngx-admin copied to clipboard

problem while opening index.html in dist folder

Open amirhosein993 opened this issue 5 years ago • 3 comments

when I open the index.html in local after publishing ngx-admin, the browser give me this error. Access to script at 'file:///E:/runtime-es2015.b5874e6667b547f01da5.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

amirhosein993 avatar Sep 10 '19 08:09 amirhosein993

Distribution folder is prepared for deployment, so you should use a web server like apache, nginx or lite-server. You can check this angular page for more information.

baloglu avatar Sep 10 '19 13:09 baloglu

Distribution folder is prepared for deployment, so you should use a web server like apache, nginx or lite-server. You can check this angular page for more information.

Thanks for your answer. I knew this. for some reasons I'm gonna use it without deploying on a server ...

amirhosein993 avatar Sep 14 '19 03:09 amirhosein993

are you find ans sol . I have same prb

nandiniachugatala avatar Jan 16 '24 08:01 nandiniachugatala