Can't enable CORS (Angular6 and Plone)
up vote
0
down vote
favorite
I'm using Angular6 and Plone 5.1.4 on the backend using the Plone RESTAPI (https://github.com/plone/plone.restapi-angular)
Everything it's fine but i can't enable CORS on the Backend (Plone), I can't set this header: Header set Access-Control-Allow-Origin "*"
The plone instance is running on the port 8080 of my server and the Angular application is running on the port 80 with Apache.
If I execute the aplication with ng serve --proxy-config proxy.config.json --host 0.0.0.0
everything it's fine, the problem is that i can't use this proxy configuration on production.
There is any way to use the proxy configuration on production in Angular6? There is another solution apart of using a proxy or setting the Header Access Control? I have read a lot of documentation and a lot of posts in StackOverflow but i can't find a solution.
Thanks for reading.
cors angular6 plone plone-5.x
add a comment |
up vote
0
down vote
favorite
I'm using Angular6 and Plone 5.1.4 on the backend using the Plone RESTAPI (https://github.com/plone/plone.restapi-angular)
Everything it's fine but i can't enable CORS on the Backend (Plone), I can't set this header: Header set Access-Control-Allow-Origin "*"
The plone instance is running on the port 8080 of my server and the Angular application is running on the port 80 with Apache.
If I execute the aplication with ng serve --proxy-config proxy.config.json --host 0.0.0.0
everything it's fine, the problem is that i can't use this proxy configuration on production.
There is any way to use the proxy configuration on production in Angular6? There is another solution apart of using a proxy or setting the Header Access Control? I have read a lot of documentation and a lot of posts in StackOverflow but i can't find a solution.
Thanks for reading.
cors angular6 plone plone-5.x
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using Angular6 and Plone 5.1.4 on the backend using the Plone RESTAPI (https://github.com/plone/plone.restapi-angular)
Everything it's fine but i can't enable CORS on the Backend (Plone), I can't set this header: Header set Access-Control-Allow-Origin "*"
The plone instance is running on the port 8080 of my server and the Angular application is running on the port 80 with Apache.
If I execute the aplication with ng serve --proxy-config proxy.config.json --host 0.0.0.0
everything it's fine, the problem is that i can't use this proxy configuration on production.
There is any way to use the proxy configuration on production in Angular6? There is another solution apart of using a proxy or setting the Header Access Control? I have read a lot of documentation and a lot of posts in StackOverflow but i can't find a solution.
Thanks for reading.
cors angular6 plone plone-5.x
I'm using Angular6 and Plone 5.1.4 on the backend using the Plone RESTAPI (https://github.com/plone/plone.restapi-angular)
Everything it's fine but i can't enable CORS on the Backend (Plone), I can't set this header: Header set Access-Control-Allow-Origin "*"
The plone instance is running on the port 8080 of my server and the Angular application is running on the port 80 with Apache.
If I execute the aplication with ng serve --proxy-config proxy.config.json --host 0.0.0.0
everything it's fine, the problem is that i can't use this proxy configuration on production.
There is any way to use the proxy configuration on production in Angular6? There is another solution apart of using a proxy or setting the Header Access Control? I have read a lot of documentation and a lot of posts in StackOverflow but i can't find a solution.
Thanks for reading.
cors angular6 plone plone-5.x
cors angular6 plone plone-5.x
asked Nov 8 at 19:28
Adrià Navarro
32
32
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53214841%2fcant-enable-cors-angular6-and-plone%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown