Skip to content

Conversation

@SteveSandersonMS
Copy link
Member

@SteveSandersonMS SteveSandersonMS commented Feb 15, 2024

@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Feb 15, 2024
@SteveSandersonMS SteveSandersonMS added the api-ready-for-review API is ready for formal API review - https://github.com/dotnet/apireviews label Feb 16, 2024
@dotnet-policy-service dotnet-policy-service bot removed the api-ready-for-review API is ready for formal API review - https://github.com/dotnet/apireviews label Feb 16, 2024
@SteveSandersonMS SteveSandersonMS marked this pull request as ready for review February 16, 2024 11:57
@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner February 16, 2024 11:57
@SteveSandersonMS SteveSandersonMS added the api-ready-for-review API is ready for formal API review - https://github.com/dotnet/apireviews label Feb 16, 2024
@dotnet-policy-service dotnet-policy-service bot removed the api-ready-for-review API is ready for formal API review - https://github.com/dotnet/apireviews label Feb 16, 2024
@dotnet dotnet deleted a comment from dotnet-policy-service bot Feb 16, 2024
endpointBuilder.RequestDelegate = httpContext =>
{
httpContext.Response.Headers["Cross-Origin-Embedder-Policy"] = "require-corp";
httpContext.Response.Headers["Cross-Origin-Opener-Policy"] = "same-origin";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be same-origin-allow-popups? If we are not having a way to configure this, we should at least be as lax as possible while enabling the feature.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, unfortunately that's not enough for SharedArrayBuffer to be enabled. It has to be same-origin.


namespace Microsoft.AspNetCore.Components.E2ETest.Tests;

public class ThreadingHostedAppTest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth having a dev server test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There already is one - see ThreadingAppTest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants