Access-Control-Allow-Origin' Error

 
Post new topic   Reply to topic    Aprelium Forum Index -> Networking Issues
View previous topic :: View next topic  
Author Message
lemorlenny
-


Joined: 25 Nov 2018
Posts: 2

PostPosted: Sun Nov 25, 2018 4:12 pm    Post subject: Access-Control-Allow-Origin' Error Reply with quote

Hi, I know this is a classic problem, I read that I need to add the "Access-Control-Allow-Origin: *" header but where in Abyss? and this is enough to fix the problem?

Many thanks in advance.

Lenny
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 835

PostPosted: Tue Nov 27, 2018 5:41 pm    Post subject: Re: Access-Control-Allow-Origin' Error Reply with quote

lemorlenny wrote:
Hi, I know this is a classic problem, I read that I need to add the "Access-Control-Allow-Origin: *" header but where in Abyss? and this is enough to fix the problem?

Many thanks in advance.

Lenny


You can add custom HTTP headers headers as explained in https://aprelium.com/data/doc/2/abyssws-win-doc-html/hosts-configuration.html#HOSTS-GENERAL-ADVANCED-CUSTOMHEADERS .

For example, to add "Access-Control-Allow-Origin: *" to any page or file served by the whole site, open the console, press "Configure" in front of the host to change, next select "General" then "Advanced Parameters".

Now press "Add" in the "Custom HTTP Headers" table

Enter / in the "Virtual Path" to make the header added to all files of the Web site (but you can do more fine grained additions by using a subpath or a path with wildcards).

Enter Access-Control-Allow-Origin in "HTTP Header Name" and * in "HTTP Header Value".

Press "OK" twice and restart the server.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
lemorlenny
-


Joined: 25 Nov 2018
Posts: 2

PostPosted: Tue Nov 27, 2018 6:10 pm    Post subject: Reply with quote

Many thanks for your reply!
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Networking Issues All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group