Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to Enable CORS in Adobe Campaign

Avatar

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
badr_eddine
Level 4

05-11-2019

Hi all,

so we wanted to add some new Fonts in our templates, but we couldn't, after some research we found that we need to enable CORS in our servers.

We have IIS servrer, so we looked into this documentation : https://enable-cors.org/server_iis7.html , but we couldn't find the web.config file.

The question here is where we can find that file inside the server? And if there isn't and we wanna create it, where exactly we can put the file ? Or if we can enable it using other way ?

Thanks,

Badr.

Replies

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

976 likes

Total Posts

1,096 posts

Correct Reply

514 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

976 likes

Total Posts

1,096 posts

Correct Reply

514 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

05-11-2019

Hi,

IIS uses the dir the site is being hosted out of for its web.config, akin to Apache's .htaccess file.

For your site, look at the url your fonts are hosted out of, then follow the same path in Windows Explorer; e.g. for http://example.com/res/fonts, the root is the parent of the res\fonts dir.

Thanks,

-Jon

Avatar

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
badr_eddine
Level 4

06-11-2019

Hi Jon and thanks for your answer,

The problem here is that I can't upload fonts to the delivery, shows me that error :

1851167_pastedImage_0.png

After i searched for that, I found a similar post that have more or less the same problem, where your answer was to enable CORS :

Using new font in AC templates 

I just wanna try to enable CORS to see if that the main problem, if it is, how i can enable CORS ?  

If not, how i can upload fonts to a delivery template in adobe campaign classic ?

Thanks,

Badr.

Avatar

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

115 likes

Total Posts

327 posts

Correct Reply

100 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

115 likes

Total Posts

327 posts

Correct Reply

100 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile
_Manoj_Kumar
MVP

06-11-2019

Hello Badr, Did you try upload your fonts under Resources > Online > Public Resources and use the url from there in the delivery template. It should work that way. Thanks, Manoj

Avatar

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
badr_eddine
Level 4

06-11-2019

Hi Manoj and thanks for your answer,

No, didn't work, we did try that too and keep loading without final result.

Thanks,

Badr.

Avatar

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

115 likes

Total Posts

327 posts

Correct Reply

100 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

115 likes

Total Posts

327 posts

Correct Reply

100 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile
_Manoj_Kumar
MVP

06-11-2019

Hello Badr, You can try this to enable CORS in server config file

<responseHeader name="" value="*.domain name"/>


Thanks, Manoj

Avatar

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
badr_eddine
Level 4

06-11-2019

Hi Manoj,

Still not working, same error when i try to upload the fonts.

Thanks,

Badr.

Avatar

Avatar
Validate 1
Level 4
somasundaramhal
Level 4

Likes

73 likes

Total Posts

71 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Shape 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 4
somasundaramhal
Level 4

Likes

73 likes

Total Posts

71 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Shape 1
Boost 50
Boost 5
Boost 3
View profile
somasundaramhal
Level 4

06-11-2019

Hi,

From the screenshot above, seems like the font that you have uploaded, delivery is considering as an image. It should be font type and in Adobe campaign it will be considered as 'Other type' in file resources. As Manoj told, you can do following:

Then take the URL from public file resource and use in webapps. This works for us.

Note: For email, custom fonts might not work. Hope you know the limitations of email rendering in different email clients.

Thanks.

Avatar

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct Reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
badr_eddine
Level 4

07-11-2019

Hi,

Yeah i've tried the solution proposed by Manoj, but keeps loading without any final result, for a file of less than 30kb was on load more than 20 minutes.

Thanks,

Badr.

Avatar

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

115 likes

Total Posts

327 posts

Correct Reply

100 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile

Avatar
Affirm 100
MVP
_Manoj_Kumar
MVP

Likes

115 likes

Total Posts

327 posts

Correct Reply

100 solutions
Top badges earned
Affirm 100
Validate 1
Contributor
Ignite 1
Shape 1
View profile
_Manoj_Kumar
MVP

07-11-2019

Hello Badr,

Did you try opening that font url directly in the browser? If the url is not loading for more than 20 minutes then there is a possibility that the DNS is not resolving.

And if the page is still loading then the CORS issue is solved, because the browser will immediately block the url request if the domain is not authorized for any request.

Thanks,

Manoj