lbl-cbg / t5-commons

Code required for the Taskforce5 commons project.
1 stars 0 forks source link

deploy to bl1231 #3

Open dsclassen opened 1 month ago

dsclassen commented 1 month ago

Issue and branch to track changes needed to deploy to bl1231/hyperion.

dsclassen commented 3 weeks ago

@yonglbl I think the main issue we are encountering when attempting to deploy is related to CORS.

To troubleshoot CORS issues in your multi-container application involving Django, React, and Nginx, follow these steps:

1. Django Configuration

Ensure that Django is configured to handle CORS properly:

2. Nginx Configuration

Ensure Nginx is configured correctly to forward headers:

3. React Configuration

Ensure that your fetch requests in the React app are configured correctly:

4. Browser and Network Debugging

Use your browser's developer tools to inspect the network requests:

5. Debug Logs

Enable debug logs in Django to get more detailed information about incoming requests and CORS handling.

By carefully checking each of these areas, you should be able to identify and resolve the CORS issues in your multi-container application setup. If you have any specific configurations or error messages you'd like to share, I can provide more detailed assistance.