@Andrew Kimani One thing you could try is to add the 'Access-Control-Allow-Origin' header to the response from the 'notification-webservice.azurewebsites.net' endpoint. This header should include the origin of the client making the request, in this case 'https://v3.jengahq.io'.
In your case, you need to add this header to the response from the 'notification-webservice.azurewebsites.net' endpoint to allow requests from the 'https://v3.jengahq.io' origin. To add the 'Access-Control-Allow-Origin' header to the response, you can modify the code that handles the request on the 'notification-webservice.azurewebsites.net' endpoint. Here's an example of how to add the header in Python:
from flask import Flask, jsonify, request
app = Flask(__name__)
@app.route('/your-endpoint', methods=['POST'])
def your_endpoint():
# your code here
response = jsonify({'message': 'success'})
response.headers.add('Access-Control-Allow-Origin', 'https://v3.jengahq.io')
return response
In this example, the 'Access-Control-Allow-Origin' header is added to the response using the 'add' method of the 'headers' attribute of the response object. The value of the header is set to 'https://v3.jengahq.io', which is the origin of the client making the request. If you do not have control over the 'notification-webservice.azurewebsites.net' endpoint, you could try reaching out to the owner of that endpoint to see if they can add the 'Access-Control-Allow-Origin' header to their responses.