When sending a GET request from another server I get this error:
CORS error: Cross-Origin Resource Sharing Error: PreFlighMissingAllowOriginHeader
I came across this with another of my microservices. CORS is some middleware that manages stuff including where requests can come from. I'm able to go to your site and put in a URL that gives me a good response and I can even use Postman to get a response. But there's something different about web servers apparently.
Thankfully the fix isn't too bad. Can you give the below a try and let me know?
When sending a GET request from another server I get this error: CORS error: Cross-Origin Resource Sharing Error: PreFlighMissingAllowOriginHeader
I came across this with another of my microservices. CORS is some middleware that manages stuff including where requests can come from. I'm able to go to your site and put in a URL that gives me a good response and I can even use Postman to get a response. But there's something different about web servers apparently.
Thankfully the fix isn't too bad. Can you give the below a try and let me know?
from flask_cors import CORS
app = Flask(name) CORS(app)