pyms
pyms copied to clipboard
Support for CORS
Create a service like metrics or requests to support flask_cors https://flask-cors.readthedocs.io/en/latest/
How-to:
- Read the tutorial How to create services
- Add new dependencies in setup.py
- Create the service
- Initialize the Service in create_app.Microservice.init_app
Challenge: Try to pass the configuration from configuration file to CORS initialization
pyms:
services:
cors:
resources:
"/api/*":
"origins": "*"
Hey @avara1986 - I want to contribute. Can you please assign this issue to me?
Thank you @nicosalu ! ^^ Don't forget to register in https://hacktoberfest.digitalocean.com/ :+1:
Hi, do we have a solution for it.