Cors blocking using Cloud Flare workers #3315
rogeriopavan
started this conversation in
General
Replies: 1 comment
-
Hello @pavandasilva, A typical request should include the origin header, e.g.: This is the header which the cors middleware checks. The request in your screenshot doesn't have this header. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I add the code above to allow localhost access to my worker, and its worker well.
Now i trying use my next.js website deployed in the cloudFlare pages and i add cors policy:
But its not working. And i received BLOCK BY CORS POLICY.
Beta Was this translation helpful? Give feedback.
All reactions