Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 637: Added CORS Support #673

Merged
merged 3 commits into from
May 1, 2023
Merged

Conversation

naphelps
Copy link
Member

References: #637

Changes:

  • Issue 637: Added CORS support. Can be configured via the Exchange's config.json file.
  • Changed Java package path to the prefix org.openhorizon.
  • Moved source handling routing to new sub-package org.openhorizon.route..
    • AdminRoutes and AgbotRoutes have been further sub-divided based on rest resource.
  • Deprecated custom methods for handling Akka configuration parameters in favor of framework defaults.
    • Backwards compatibility is still maintained.

Changes:
- Issue 637 - Added CORS support. Can be configurated via the Exchange's config.json file.
- Changed Java package path to the prefix org.openhorizon.
- Moved source handling routing to new sub-package org.openhorizon.route..
  - AdminRoutes and AgbotRoutes have been further sub-divided based on rest resource.
- Deprecated custom methods for handling Akka configuration parameters in favor of framework defaults.
  - Backwards compatibility is still maintained.

Signed-off-by: Nathan Phelps <naphelps@us.ibm.com>
Signed-off-by: Nathan Phelps <naphelps@us.ibm.com>
# Conflicts:
#	CHANGELOG.md
#	docs/README.md
#	docs/openapi-3-developer.json
#	docs/openapi-3-user.json
#	src/main/resources/version.txt
#	src/main/scala/com/horizon/exchangeapi/tables/Patterns.scala
#	src/main/scala/org/openhorizon/exchangeapi/table/Nodes.scala
@naphelps naphelps requested a review from bmpotter April 27, 2023 12:15
@naphelps
Copy link
Member Author

naphelps commented Apr 27, 2023

@playground
@joewxboy

The default shipped config is to allow all (CORS checks/rejections are opt-in) for backwards compatibility. Config can be changed via config.json. See README for details.

@joewxboy
Copy link
Member

@playground @joewxboy

The default shipped config is to allow all (CORS checks/rejections are opt-in) for backwards compatibility. Config can be changed via config.json. See README for details.

Thanks. I'll defer to @playground for compatibility verification/validation.

@playground
Copy link

Thanks @naphelps for the info, that works for me. Is this available yet for me to test?

@naphelps
Copy link
Member Author

naphelps commented Apr 27, 2023

@playground

Can be tested by pulling this PR and building the Exchange. You could also pull my branch from my repo.

@naphelps naphelps merged commit 602abca into open-horizon:master May 1, 2023
2 checks passed
@naphelps naphelps deleted the issue-637 branch May 1, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants