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

Fixed CORS headers handling #242

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JBBianchi
Copy link
Member

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:
It seems the _headers configuration is ignored since we moved to Astro (I think it was already ignored with Hugo/Docsy), therefore, the header Access-Control-Allow-Origin: * is not set and ressources, like the schema, cannot be loaded from an external domains.

The PR adds a netlify edge-function middleware that's supposed to solve the problem.

Special notes for reviewers:

Additional information (if needed):

Signed-off-by: Jean-Baptiste Bianchi <[email protected]>
@JBBianchi JBBianchi marked this pull request as draft January 17, 2025 14:48
@JBBianchi
Copy link
Member Author

JBBianchi commented Jan 17, 2025

From what I see in the deploy preview, it doesn't seem to work better...

Copy link
Member

@cdavernas cdavernas left a comment

Choose a reason for hiding this comment

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

LGTM! Cheers ❤️

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.

2 participants