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

Add COOP+COEP+CORP headers #6646

Merged
merged 3 commits into from
May 12, 2023
Merged

Add COOP+COEP+CORP headers #6646

merged 3 commits into from
May 12, 2023

Conversation

somebody1234
Copy link
Contributor

@somebody1234 somebody1234 commented May 11, 2023

Pull Request Description

Fixes #6645.
Re-implements #6597, with fixes included.

Important Notes

None

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed, the GUI was tested when built using ./run ide build.

@somebody1234
Copy link
Contributor Author

not tested as i am currently unable to build. i'll do a reboot soon, but for now maybe @PabloBuchu could test whether this fixes the issue?

@somebody1234
Copy link
Contributor Author

never mind, build actually worked :o

@somebody1234
Copy link
Contributor Author

ok this fix doesn't work: net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 200

@somebody1234 somebody1234 added the CI: No changelog needed Do not require a changelog entry for this PR. label May 11, 2023
@somebody1234 somebody1234 changed the title Fix incorrect CORP header value Fix loading third-party resources May 11, 2023
@somebody1234
Copy link
Contributor Author

i am getting a different error but i don't think it's related, as this is a CORS error caused by the destination URL missing CORS headers. however, the code has been here for a while and there were no problems previously, so not sure why it's a problem now
image

@somebody1234
Copy link
Contributor Author

correction: looks like it is caused by this change... not sure whether there's a good solution though

@somebody1234
Copy link
Contributor Author

somebody1234 commented May 11, 2023

because of the change in ide code, i think testing must not use --backend-source release --backend-release latest??? or maybe the wasm needs to be rebuilt, not sure why it isn't getting rebuilt

@somebody1234
Copy link
Contributor Author

somebody1234 commented May 11, 2023

error no longer in console. font seems to be working again:
image
broken font (well, the fallback on my system at least) for comparison:
image

@somebody1234 somebody1234 changed the title Fix loading third-party resources Add COOP+COEP+CORP headers May 11, 2023
@somebody1234 somebody1234 force-pushed the wip/sb/fix-corp-header-value branch from 33f96c2 to 9693317 Compare May 11, 2023 12:29
@PabloBuchu
Copy link
Contributor

qa 🟢 but lets wait with merge for #6605

@sylwiabr
Copy link
Member

@wdanilo can you do the PR review here?

@wdanilo
Copy link
Member

wdanilo commented May 12, 2023

Let's merge it! But there are some conflicts now.

@PabloBuchu PabloBuchu merged commit 4b64d66 into develop May 12, 2023
@PabloBuchu PabloBuchu deleted the wip/sb/fix-corp-header-value branch May 12, 2023 10:58
@wdanilo
Copy link
Member

wdanilo commented May 12, 2023

@PabloBuchu @somebody1234 I've got a question – how that was not noticed not watched during Q/A that when you start the app the warning is printed to console:

image

Which clearly shows that it is still broken?

@somebody1234
Copy link
Contributor Author

somebody1234 commented May 12, 2023

that is a source map, which is not required to run the js script. mapbox itself should work, not sure whether there is a way to get rid of the error. i figured it would be safer to not special-case source maps, but we could explicitly allow them by setting a less restrictive CORP header maybe?

@somebody1234
Copy link
Contributor Author

but yeah, we should probably have mentioned that before merging it in...

@wdanilo
Copy link
Member

wdanilo commented May 12, 2023

ahhh that's source map! Ok, uff ,that's much smaller than I thought. Ok, lets fix it in a separate PR then :)

Procrat added a commit that referenced this pull request May 16, 2023
* develop:
  Build nightlies every day. (#6681)
  Force `newDashboard` default on the CI-built packages. (#6680)
  Verify ascribed types of parameters really exist (#6584)
  SuggestionBuilder needs to send ascribedType of constructor parameters (#6655)
  Improvements to the Table visualization. (#6653)
  Removing flush (#6670)
  Improving widgets for take/drop (#6641)
  disable authentication and newDashboard by default (#6664)
  Add COOP+COEP+CORP headers (#6646)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map visualization is not working anymore
4 participants