Fix Flask CORS Error: Access-Control-Allow-Origin

Published: 09 November 2021
on channel: Luke Peters
20,058
205

FULL STACK COURSE (React, Flask, & PostgreSQL): https://lukepeters.me/build-a-full-st...

CORS stands for Cross-Origin Resource Sharing. By default, Flask doesn't let other domains (origins) access its routes. But you can fix this using the Flask-CORS Python module to change your app's CORS policy.

0:00 - Intro
1:28 - Install Flask-CORS
1:50 - Method #1
2:54 - Method #2
6:14 - Method #3
7:58 - Wrapping up

---------------------------------------------------------------
RECOMMENDED WEB HOSTING

I swear by Linode. I've been using them for years and I refer every freelance client to them. Here's my special referral link if you want to help me out a little: https://lukepeters.tech/linode

---------------------------------------------------------------
MY DESK SETUP GEAR

⌨️ Keyboard – https://amzn.to/3sR3WEK

🖱 Mouse – https://amzn.to/3aEBvnc

🖥 Monitor – https://amzn.to/30pmuzd

🦾 Monitor Mount/Arm – https://amzn.to/3sLd3Xu

🎤 Microphone – https://amzn.to/3sRfxUb

🦾 Microphone Arm – https://amzn.to/3xrxImT

🎛 Microphone Processor – https://amzn.to/3gConme

⚡️ Thunderbolt Dock – https://amzn.to/3aE8aJC

🔊 Speakers – https://amzn.to/3nip0D0

🎧 Headphones – https://amzn.to/3xoCVfm

🪑 Chair – https://amzn.to/3eBIw9I


On this page of the site you can watch the video online Fix Flask CORS Error: Access-Control-Allow-Origin with a duration of hours minute second in good quality, which was uploaded by the user Luke Peters 09 November 2021, share the link with friends and acquaintances, this video has already been watched 20,058 times on youtube and it was liked by 205 viewers. Enjoy your viewing!