Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 1

Can I enable CORS when squarespace API is on a subdomain of my main website?


Linhttd

Question

I am developing a website and need to get content from my squarespace page to display

When I try to do HTTP requests though, I get the following error:

CORS policy: No 'Access -Control -Allow-Origin' Header Is present on the requested resource 

Is there anything I can do to solve this problem?

Link to comment

4 answers to this question

Recommended Posts

  • 0
2 minutes ago, Linhttd said:

I am developing a website and need to get content from my squarespace page to display

When I try to do HTTP requests though, I get the following error:


CORS policy: No 'Access -Control -Allow-Origin' Header Is present on the requested resource 

Is there anything I can do to solve this problem?

Upvoted, I have the same issue for this. CORS displays like a bug.

I need a hand from pro

Link to comment
  • 0

You'll need to provide us with more information, including the URLs of the two pages on the two sites and what you want to achieve.

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment
  • 0

@paul2009

We are still in development but we have 1 website with the domain name abc.jp (I apologize for not being able to provide an official website for the privacy of our clients)
and we want to set the domain of squarespace page as notification.abc.jp
We want to call api of notification.abc.jp page from abc.jp to get some information like title, tag, category

Link to comment
  • 0

Generic URLs aren't any help. We need the URLs of the actual sites. This is so we can see the settings and diagnose the issue and provide an accurate answer. 

If you are being paid by a client then I recommend you hire a professional to help you so that you can discuss the issue privately.

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...