View previous topic :: View next topic |
Author |
Message |
lemorlenny -
Joined: 25 Nov 2018 Posts: 2
|
Posted: Sun Nov 25, 2018 4:12 pm Post subject: Access-Control-Allow-Origin' Error |
|
|
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 |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1304
|
Posted: Tue Nov 27, 2018 5:41 pm Post subject: Re: Access-Control-Allow-Origin' Error |
|
|
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 |
|
|
lemorlenny -
Joined: 25 Nov 2018 Posts: 2
|
Posted: Tue Nov 27, 2018 6:10 pm Post subject: |
|
|
Many thanks for your reply! |
|
Back to top |
|
|
|