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

Enable CORS on localosmosis #4891

Merged
merged 5 commits into from
Apr 11, 2023
Merged

Conversation

niccoloraspa
Copy link
Member

Closes: #4879

What is the purpose of the change

Enables cors on localOsmosis for:

  • rpc
  • api
  • gRPC-web

Brief Changelog

  • Enable cors by default on localosmosis

Testing and Verifying

Start localosmosis:

make localnet-start

Check file changes:

❯ cat ~/.osmosisd-local/config/config.toml | grep cors
  cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", "Accept-Encoding"]
  cors_allowed_methods = ["HEAD", "GET", "POST", "DELETE", "OPTIONS", "PATCH", "PUT"]
  cors_allowed_origins = ["*"]
❯ cat ~/.osmosisd-local/config/app.toml | grep cors
  enabled-unsafe-cors = true
  enable-unsafe-cors = true

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? no
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? yes
  • How is the feature or change documented? not applicable

@niccoloraspa niccoloraspa added V:state/compatible/backport State machine compatible PR, should be backported A:backport/v15.x backport patches to v15.x branch labels Apr 11, 2023
@niccoloraspa niccoloraspa requested a review from a team as a code owner April 11, 2023 14:16
@niccoloraspa niccoloraspa requested a review from p0mvn April 11, 2023 14:24
@niccoloraspa
Copy link
Member Author

cc: @jonator

@mergify mergify bot merged commit 3b2e168 into main Apr 11, 2023
@mergify mergify bot deleted the niccolo/feat-add-cors-to-localosmosis branch April 11, 2023 17:43
mergify bot pushed a commit that referenced this pull request Apr 11, 2023
Closes: [#4879](#4879)

## What is the purpose of the change

Enables cors on localOsmosis for:
- rpc
- api
- gRPC-web

## Brief Changelog

- Enable cors by default on localosmosis

## Testing and Verifying

Start localosmosis:

```bash
make localnet-start
```

Check file changes:

```bash
❯ cat ~/.osmosisd-local/config/config.toml | grep cors
  cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", "Accept-Encoding"]
  cors_allowed_methods = ["HEAD", "GET", "POST", "DELETE", "OPTIONS", "PATCH", "PUT"]
  cors_allowed_origins = ["*"]
```

```bash
❯ cat ~/.osmosisd-local/config/app.toml | grep cors
  enabled-unsafe-cors = true
  enable-unsafe-cors = true
```

## Documentation and Release Note

  - Does this pull request introduce a new feature or user-facing behavior changes? no
  - Is a relevant changelog entry added to the `Unreleased` section in `CHANGELOG.md`? yes
  - How is the feature or change documented? not applicable

(cherry picked from commit 3b2e168)

# Conflicts:
#	CHANGELOG.md
#	tests/localosmosis/scripts/setup.sh
niccoloraspa added a commit that referenced this pull request Apr 12, 2023
* Enable CORS on localosmosis (#4891)

Closes: [#4879](#4879)

## What is the purpose of the change

Enables cors on localOsmosis for:
- rpc
- api
- gRPC-web

## Brief Changelog

- Enable cors by default on localosmosis

## Testing and Verifying

Start localosmosis:

```bash
make localnet-start
```

Check file changes:

```bash
❯ cat ~/.osmosisd-local/config/config.toml | grep cors
  cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", "Accept-Encoding"]
  cors_allowed_methods = ["HEAD", "GET", "POST", "DELETE", "OPTIONS", "PATCH", "PUT"]
  cors_allowed_origins = ["*"]
```

```bash
❯ cat ~/.osmosisd-local/config/app.toml | grep cors
  enabled-unsafe-cors = true
  enable-unsafe-cors = true
```

## Documentation and Release Note

  - Does this pull request introduce a new feature or user-facing behavior changes? no
  - Is a relevant changelog entry added to the `Unreleased` section in `CHANGELOG.md`? yes
  - How is the feature or change documented? not applicable

(cherry picked from commit 3b2e168)

# Conflicts:
#	CHANGELOG.md
#	tests/localosmosis/scripts/setup.sh

* Update CHANGELOG.md

* Align setup.sh

* Update create_two_asset_pool()

---------

Co-authored-by: Niccolo Raspa <[email protected]>
Co-authored-by: Niccolo Raspa <[email protected]>
@github-actions github-actions bot mentioned this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge A:backport/v15.x backport patches to v15.x branch V:state/compatible/backport State machine compatible PR, should be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: enable cors in localosmosis by default
3 participants