-
-
Notifications
You must be signed in to change notification settings - Fork 19
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/modify Headers (CORS) #80
Comments
Not a fix, but you can hack in CORS support to the dev server by adding this to line 418 of
|
@craig552uk it looks exactly like a fix. If maintainers of Eleventy decide it fits into the project. |
@craig552uk the repository for that code is at https://github.com/11ty/eleventy-dev-server, you could raise a PR for that fix. |
Seems like a mechanism to add/modify headers would be useful! I don’t know that I’d want to |
Here’s an example of that happening in the code now (though this example is not user configurable) Line 494 in 55099ca
|
It should be simple to add |
Shipping with Dev Server v2.0.3, core v3.0.0-beta.2 v3.0.0-alpha.19 |
Is your feature request related to a problem? Please describe.
I'm working on a blog that uses Giscus that allows to change theme by using custom CSS. In order to use this feature you need to put a full path to the CSS file when initializing the Giscus. So when using the path to the dev server I got a CORS error.
Describe the solution you'd like
CORS option for dev server
Describe alternatives you've considered
I was thinking of using a Chrome extension that enables CORS headers (like CORS everywhere) but the last time I checked an extension like this it was not working when CORS was needed.
Additional context
No response
The text was updated successfully, but these errors were encountered: