Solve "No 'Access-Control-Allow-Origin'" Javascript - Simple

Published: 24 October 2017
on channel: Luyện Thi Nhanh
22,629
53

How Solve " No 'Access-Control-Allow-Origin' header is present on the requested resource " when using javascript.
Times: ~1 min
Step: add header and reload Request
Example with PHP (Javascript, .NET, v.v..)
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Credentials: true');


Watch video Solve "No 'Access-Control-Allow-Origin'" Javascript - Simple online without registration, duration hours minute second in high quality. This video was added by user Luyện Thi Nhanh 24 October 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 22,629 once and liked it 53 people.