Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
126
rated 0 times [  128] [ 2]  / answers: 1 / hits: 22000  / 10 Years ago, tue, september 16, 2014, 12:00:00

any help please ?
this error shows when i try to get data from server .
my Angular App is in my local computer and the database in a server which i connect to it through internet.



error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://XXXXXXXX.com/XXXXx. This can be fixed by moving the resource to the same domain or enabling CORS.



what is the steps to solve this error ??


More From » angularjs

 Answers
15

If you want a quick fix during development, use a plugin to enable CORS in your browser: plugin for Chrome.



Learn more about CORS here. Then read the accepted answer here.


[#69443] Friday, September 12, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sonja

Total Points: 541
Total Questions: 113
Total Answers: 114

Location: Anguilla
Member since Sun, Jan 29, 2023
1 Year ago
sonja questions
Mon, Nov 30, 20, 00:00, 4 Years ago
Sun, Oct 11, 20, 00:00, 4 Years ago
Thu, May 21, 20, 00:00, 4 Years ago
Sun, Nov 10, 19, 00:00, 5 Years ago
Mon, Aug 26, 19, 00:00, 5 Years ago
;