How do I resolve the CloudFront error 'No Access-Control-Allow-Origin header?

preview_player
Показать описание


Rishu shows you how to resolve the CloudFront error "No Access-Control-Allow-Origin header.

0:00 Intro
0:33 Start
0:41 CloudFront Distribution’s Cache Behavior allows the OPTIONS method for HTTP Request
1:20 CloudFront forwards the appropriate CORS Headers to the Origin
3:55 Verify that the Origin is returning the “Access-Control-Allow-Origin” Header

Subscribe:

ABOUT AWS Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud platform, offering over 200 fully featured services from data centers globally. Millions of customers — including the fastest-growing startups, largest enterprises, and leading government agencies — are using AWS to lower costs, become more agile, and innovate faster. #AWS #AmazonWebServices #CloudComputing
Рекомендации по теме
Комментарии
Автор

Thanks, brother. Your video is really helpful; you explain things in a very simple way. Thank you again for saving my precious time. 😀😀

ZakaAhmad-eboh
Автор

Amazing explanation. Helped me to solve the CORS issue.

vineetranjan
Автор

in may case:
- the curl command should pass an origin stating with https://
- also had to configure S3 Cross-origin resource sharing (CORS) adding to "AllowedOrigins" these values: "https://*", "http://*"

Onoffrei
Автор

t got the same issue, this video help me alot. thanks ♥

huythanh
Автор

In my case, I am using a CloudFront distribution for the UI code deployed on S3. From S3, the UI code requests go to the API server, and I encountered the same error in the browser console. It was misleading, indicating CORS issues, but the root cause was CloudFront's inability to connect to the origin server. Therefore, it's essential to check the health and reachability of the origin server to resolve this issue

adityayalagandhula
Автор

I am signed in as root user, but getting an access denied error.

iZphex
Автор

I get "access denied access denied9u9ga8dpa98dfadf". This video didn't help. Help me.

krishd
Автор

Thank you for this explaining video, i've been able to fix it.

homescriptone