CertifaiAI / CertifaiAI/classifai
CORS Error, Port number did not reflected when change in build script
- Dominant language
- Java
- Stars
- 127
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Port number in front end did not change when changed it in the build script
**To Reproduce**
1. Download Classifai Repo
2. Run
```
Unix: ./startClassifai.sh --port=12222
Windows: startClassifai.bat --port=12222
```
3. In web browser, use inspect to see the URL endpoints called
It can be seen that the url still maps back to 9999

**Expected behavior**
Port of endpoints changed accordingly with build script when port number is specifically written.
**Desktop (please complete the following information):**
Tested on Mac.
@amalsyahmi-certifai can you check if you are seeing the same scenario im facing,
as of assignee to solve the bug, you can decide who to work on it
Contributor guide
Research direction
Run ./startClassifai.sh --port=12222 on Unix or startClassifai.bat --port=12222 on Windows, then inspect the browser's endpoint URLs as described. Read the startup scripts and the frontend endpoint configuration to trace where 9999 remains fixed. Done means the endpoint URLs use the explicitly supplied port.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, build-system, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100