CORS enabling #3629
Answered
by
achamayou
M. Lammers (martijnlammers)
asked this question in
Q&A
CORS enabling
#3629
|
Does CCF support enabling CORS server side and if so where would you need to enter valid domains? |
Answered by
achamayou
Mar 3, 2022
Replies: 1 comment 1 reply
|
M. Lammers (@martijnlammers) my understanding of the implementation of CORS server side (derived from https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) is that it consists entirely of the server setting the right HTTP headers on responses. Since CCF lets you set arbitrary response headers, I would say it's possible to do it, eg: If you mean support as in, does CCF implement any CORS-related logic that can be switched on with a flag, then no. |
1 reply
Answer selected by
martijnlammers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
M. Lammers (@martijnlammers) my understanding of the implementation of CORS server side (derived from https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) is that it consists entirely of the server setting the right HTTP headers on responses. Since CCF lets you set arbitrary response headers, I would say it's possible to do it, eg:
If you mean support as in, does CCF implement any CORS-related logic that can be switched on with a flag, then no.