How to fix CORS error in Angular 8 | CORS allow headers | Access-Control-Allow-Origin Error [SOLVED]

Опубликовано: 10 Октябрь 2024
на канале: GSoft Knowledge
48,262
175

hello guys, if you are facing this 'Cross-Origin Request Blocked' error? go through the video where i have shown how you can fix the cross origin error or header on your server. Watch the video till the end.

Download .htaccess file from here : https://zee.gl/htaccessCORS
OR

Use this in your .htaccess

Header set Access-Control-Allow-Origin 'http://localhost:4200'
Header always set Access-Control-Allow-Methods "POST, GET, DELETE, PUT"
Header always set Access-Control-Allow-Headers "*"

==============================================
FOR FASHION ACCESSORIES AND SHOES FOLLOW MY PAGE

👇 👇 👇 LINK TO INSTAGRAM PAGE 👇 👇 👇

Page Link: https://zee.gl/01mBg

PAGE NAME: kicksniks
FREE SHIPPING ALL OVER INDIA
Must follow my instagram page
---------------------------------------------------------

Dont forget to like, share and Subscribe.

#webdev #angular #corserror